What does this log when a function declaration and a function expression are both called before their lines?
console.log(typeof greet);
console.log(typeof hello);
greet();
hello();
function greet() {
console.log("greet");
}
var hello = function () {
console.log("hello");
};
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…