Day 1: Simple Types
Lesson 1: Console.log()
Take a look below
Change the line
Notice that as you type, the console on the right prints your output.
If you want to clear the console output click the icon and if you want to refresh the code back to the starting example you can click the icon.
Have a play around with the playground, see if you can log
hello world across two lines with two
What's actually happening here?
console is an object that lives in you browser, and it has things it can do. Like
log so we are calling
console and then telling it what we want logged.
() are special and they are telling the
log to do it's thing. So the line:
console.log("hello world") breaks down to us saying "tell
console object in the browser to
log the words