No, spaces are not needed; however, keeping white space around operators lets them stand out and makes readability and debugging much easier so it is recommended.

Did the instructions ask us to create a variable for our age? Seems the author meant for us to literally write it into the console.log() statement.

P. S. Griping is not going to win you much support. Pull up your socks and invest yourself. Forget about the money. The real investment is your attitude and effort.

Yes, we can, though we need to be able to interpret the outcomes. Bear in mind that floating point math is not the same as integer math so we likely won’t see 0 as the result even if a number is divisible.

Eg.

console.log(2.25 % 0.15) // 8.326672684688674e-17

Compare this to,

console.log(225 % 15) // 0

The simplest use case is where the divisor is unity (1).

console.log(3.14 % 1) // 0.14000000000000012

Note again the floating point arithmetic error. We have very nearly extracted the decimal portion of the dividend though we have to mitigate the error to arrive at the actual value, 0.14.

As a predicate to determine if a value is float or not,

if (n % 1 === 0) {
// n is an integer or very nearly one; 3.0 => 3
} else {
// n is a float
}