2.1 -Console vs. Document

🛑 STOP!!! Do not open the repository for this lesson until instructed!!! 🛑

Front-End vs. Back-End


2.0 - Commands in Code

A command in code - also called a function or procedure - always has parentheses at the end. This goes for 99% of programming languages.

Sometimes the function has extra options and sometimes it doesn't:

jump()
sleep_in_hours(8)
colour_RGB(150, 255, 0)
print("I love to code!")
exit()


2.1 - The Console vs. The Document

Developers need a way to leave messages for themself and test information.




Let's see the JavaScript Console:


The DOCUMENT (HTML) can be modified using JavaScript code!

Notice we had to use console. and then a command? We can to the same thing with document. (but the commands are different.

❓ Why did that last one look different?

Today's Task(s)

HOUSE-KEEPING:  


Read and follow the instructions in "2.1 - Output & the Console"

Did you know?