ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 89 - Certified JavaScript Developer I discussion

Report
Export

Refer to the following code:

function test (val) {

If (val === undefined) {

return 'Undefined values!' ;

}i

f (val === null) {

return 'Null value! ';

}

return val;

}

Let x;

test(x);

What is returned by the function call on line 13?

A.
Undefined
Answers
A.
Undefined
B.
Line 13 throws an error.
Answers
B.
Line 13 throws an error.
C.
'Undefined values!'
Answers
C.
'Undefined values!'
D.
'Null value!'
Answers
D.
'Null value!'
Suggested answer: C
asked 23/09/2024
Jordan Reid
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first