JS Coding Questions Logo
JS Coding Questions
#74🎯 Exercise💻 Code

JavaScript Coding Exercise 74

Advertisement

728x90
javascript
1function greeting() {
2
3setTimeout(function () {
4
5console.log(message);
6}, 5000);
7
8const message = "Hello, Good morning";
9}
10
11greeting();

Choose the correct output:

A
Undefined
B
Reference error:
C
Hello, Good morning
D
null

Advertisement

Responsive Ad
74of86