• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

388
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?

almost 3 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

almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error