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

JavaScript Coding Exercise 6

Advertisement

728x90
javascript
1function foo() {
2
3return;
4{
5
6message: "Hello World";
7}
8}
9
10console.log(foo());

Choose the correct output:

A
Hello World
B
Object {message: "Hello World"}
C
Undefined
D
SyntaxError

Advertisement

Responsive Ad
6of86