Consider the following code snippet:
function greet() {
const message = 'Hello';
console.log(message);
}
greet();
console.log(message);
What will be the output of the second console.log statement?
Consider the following code snippet:
function greet() {
const message = 'Hello';
console.log(message);
}
greet();
console.log(message);
What will be the output of the second console.log statement?