How do I get my Visual Studio Code to look like the display on Codeacademy.com

Newbie at Javascript and Visual Studio Code!
I want to be able to write javascript code and run it in Visual Studio Code, and have it appear in a console similar to the format in Codeacady lessons. I feel like I’m going round in circles trying to find this (what I know to be) simple answer.
Any help is welcomed!! Working with Mac OS.
Thanks

1 Like

Hi, Welcome to the forums.

The easiest way probably, is to create a blank JavaScript file and add some code, for example:

console.log('This is a test');

And then press F5, to run, on your keyboard, the VS Code Debug Console will output “This is a test” (remember to save before you run it).

When I press F5 on my Windows computer in VS Code, I keep getting an error message pop-up:
“Cannot find runtime ‘node’ on PATH. Is ‘node’ installed?”
It then gives me the option to “open launch.json”
I don’t know what that means. I’ve clicked that option and it opens up something new but I have no idea what it is.
Am I doing something wrong?

1 Like

Hello, did you find out in the end? I’ve been stuck an entire day trying to print a ■■■■ ‘Hello world’ and I can’t seem to find a beginner friendly solution