Starting to Use the Chrome DevTools Console

Click on the Console tab.

Notice the Clear button in the top left.

Try out some math.

Practice order of operations.

Try out some variables.

let x = 2
let y = 6
let z = x * y

y = 10
z = x * y

z
20

Practice printing / writing stuff.

console.log('Hello world.')
Hello world.

console.log(z)
20

console.log(x,y,z)
2 10 20

let name = 'Mr. Rob'
console.log(`Hello ${name}!`)
Hello Mr. Rob!

console.log('%cFabulous!', 'color: magenta; background: pink;')
Fabulous!