Hey can anyone tell me why my javascript code is not running in VS CODE.... Although nodejs is installed.... But showing module | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hey can anyone tell me why my javascript code is not running in VS CODE.... Although nodejs is installed.... But showing module

The problem is same on Linux as well as on Windows

1st Aug 2022, 3:55 AM
Rahul
1 Answer
+ 2
How your javascript code looks like, do you have 1 file or multiple connected? Do you try to run it inside terminal or in browser? What kind of error messages you get when you try to run it? If you use modules in javascript you may check this site: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
1st Aug 2022, 8:03 AM
PanicS
PanicS - avatar