This lesson introduces the console.log command and demonstrates it in the lesson printing what is inside the quotes as the output text (as it behaves in most other languages like print(“Hello”) in python)
console.log(“Hello”);
outputs:Hello
When we run it, the message with the quotes is printed to the console. Any idea why this happens?
console.log(“Hello”);
outputs:“Hello”
Hello, @cfuller. This is due to an update that was made to the debugging console, which helps students clearly see the data types that are outputted. I apologize that the screenshot is out of date.
If you’d like to check out more of what the new and improved console can do, take a look at what happens when you print a list!