Free JavaScript-Developer-I Exam Dumps

Question 6

Refer to the code below: function changeValue(param) { Param =5;
}
Let a =10;
Let b =5; changeValue(b);
Const result = a+ “ - ”+ b;
What is the value of result when code executes?

Correct Answer:A

Question 7

Consider type coercion, what does the following expression evaluate to? True + 3 + ‘100’ + null

Correct Answer:D

Question 8

Refer to the expression below: Let x = (‘1’ + 2) == (6 * 2);
How should this expression be modified to ensure that evaluates to false?

Correct Answer:B

Question 9

Refer to the code below:
new Promise((resolve, reject) => { const fraction = Math.random();
if( fraction >0.5) reject("fraction > 0.5, " + fraction); resolve(fraction);
})
.then(() =>console.log("resolved"))
.catch((error) => console.error(error))
.finally(() => console.log(" when am I called?"));
JavaScript-Developer-I dumps exhibit
When does Promise.finally on line 08 get called?

Correct Answer:D

Question 10

Refer to the code:
JavaScript-Developer-I dumps exhibit
Given the code above, which three properties are set pet1? Choose 3answers:

Correct Answer:BCE