Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

553
Views
JavaScript on Visual Studio Code - is Node required to run a file?

I am currently trying to catch up with some JS basics, before continuing with my node.js-project.

I wanted to execute the file and kept getting the error 'console is not defined', when I wanted to use console.log('Hello!')

The only helpful way to run the file normally was with: node ./myjsfile.js

I installed node.js for that node project.

But for just running super basic JavaScript I don't want node.js.

What are better (lighter!) ways to run my JavaScript files inside Visual Studio Code? Like what's the most basic way to do it?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

No, if you do not currently have Node, you will not have the 'play button' to run the code. So, if you go to Run in the toolbar at the top, you should see some options to run the file.

I'm pretty sure you can just press F1 and then Run Code

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!