A variable declared inside a function belongs to that function call. Use it before the closing brace because code outside cannot read it.
function greet() {
const message = "Hello";
console.log(message);
}
greet();Display Message: Ready to learn from inside showMessage, where message is available. Then call the function.