console.log()
and Math.floor()
(for examples). When we ask the console to log()
we have to put text inside the round brackets. The console prints out that text for us. When we call the floor()
function, the huge chunk of code we call Math removes any decimals on the number we place inside the brackets of floor()
and returns the new value.console.clear()
takes zero parameters - it just does the job
Math.floor()
takes one parameter - the value to floorMath.floor(3.14159)
returns 3
Math.pow()
takes two parameters - the base and the exponent, separated by commasMath.pow(2, 3)
returns 8
console.log()
takes any number of parameters, separated by commas.console.log("The value %d is the floored value %f.", 3, 3.14159)