Will this code below run without errors and will you get the expected result from it?
Hint:
Do you remember the concept of hoisting?
console.log(greetings()); // 'Hello world!'
function greetings() {
return 'Hello world!';
}Will this code below run without errors and will you get the expected result from it?
Do you remember the concept of hoisting?
console.log(greetings()); // 'Hello world!'
function greetings() {
return 'Hello world!';
}Create a free account to access the full topic