Free Salesforce Javascript-Developer-I Exam Actual Questions

The questions for Javascript-Developer-I were last updated On Nov 5, 2024

Question No. 1

Given the following code:

is the output of line 02?

Show Answer Hide Answer
Correct Answer: C

Question No. 2

Refer to the following code:

Which statement should be added to line 09 for the code to display. The boat has a capacity of 10 people?

Show Answer Hide Answer
Correct Answer: D

Question No. 3

Refer to the codebelow:

function foo () {

const a =2;

function bat() {

console.log(a);

}

return bar;

}

Why does the function bar have access to variable a ?

Show Answer Hide Answer
Correct Answer: C

Question No. 4

A developer has the function, shown below, that is called when a page loads.

function onload() {

console.log(''Page has loaded!'');

}

Where can the developer see the log statement after loading the page in the browser?

Show Answer Hide Answer
Correct Answer: C

Question No. 5

Refer to the code below:

Click me!

Which code change should be made for the console to log only Row log when 'Click me! ' is

clicked?

Show AnswerHide Answer
Correct Answer: B