Javascript code

how to run the javascript code in VS

@manvi_1409 you can either install the code runner extension for vs code and then follow the documentation for run command to run your js file, or install node for running the file locally in your system.

which one should i prefer?

@manvi_1409 if you are also learning backend development go for the node version otherwise you can just download the extension.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.