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
Consider type coercion, what does the following expression evaluate to? True + 3 + ‘100’ + null
Correct Answer:D
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
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?"));
When does Promise.finally on line 08 get called?
Correct Answer:D
Refer to the code:
Given the code above, which three properties are set pet1? Choose 3answers:
Correct Answer:BCE