varstatements. Don't let it bother you! There's nothing inherently wrong with
var, and in most cases
letbehave the same way. But sometimes the behavior of
varis not what you would expect. Just stick to
const) for now. The precise differences between
letwill be explained later.
console.log()is the command to print something to the developer console in your browser. Use it for all of the following exercises.
console.log(23 + 97)into your html file)
(4 + 6 + 9) / 77
let a = 10
9 * a
let b = 7 * a(returns undefined) and then
maxwith the value
max - 13
actual / max
percentagein the console and press enter you should see a value like