Exit JAVASCRIPT-DEVELOPER-I Salesforce Certified JavaScript Developer (JS-Dev-101)
Question 1 of 5
0% complete
Q1 Single choice

Refer to the following code:

function test (val) {

If (val === undefined) {

return `Undefined values!' ;

}

if (val === null) {

return `Null value! ';

}

return val;

}

Let x;

test(x);

What is returned by the function call on line 13?

  • A

    Undefined

  • B

    Line 13 throws an error.

  • C

    `Undefined values!'

  • D

    `Null value!'

Previous Next