Why does it say we need to open the console? What's the console and why do we need it?
This might seem strange, to have a language that can't do inputting and outputting, but it's been true for a long time that, for example, C needed a whole library to be loaded before it could print output to the screen.
The easiest way to output characters and numbers, etc. is the console.
You'll only be able to see this output if you have the console open.
The original purpose of the console was to output debugging information for pages and scripts so when we use it for regular output, it's a bit of a hack.
There's no way to get input from the console.
The best we can do is pop up a "prompt" on the webpage.
This next facts stands a chance of confusing you a lot. I know it did me to start with.
As we'll see when we get to our first contact with Node.js, these same objects are not available there.
The full list of 'web apis' is mindblowing and the thought of learning them all is truly daunting, so DON"T PANIC. Nobody knows all of it.
You should instead take heart from it.
The core language is relatively small. Once you understand the core language, you will be able to figure out with relative ease how to use any of those apis.
For now, however, we'll use 'console.log' to output things and we'll use 'prompt' if we ever want to get input from the user and we'll make do.
Obviously, we're going to need much better ways to input and output data but for now this will do.
The natural counterpart to Prompt is actually Alert and you could use that instead of console.log. But each alert needs to be dismissed separately and it can get annoying to have too many things popping up.
Logging to the console is less obtrusive/annoying and we're never going to use any of these methods for input and output in real pages or apps that we make.
Test a console log and make sure you can see it