What does this log when a var and a function are used before they're declared?
console.log(total);
console.log(add(2, 3));
var total = 10;
function add(a, b) {
return a + b;
}
console.log(total);
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…