00:00

QUESTION 11

A developer implements and calls the following code when an application state change occurs: Const onStateChange =innerPageState) => {
window.history.pushState(newPageState, ‘ ’, null);
}
If the back button is clicked after this method is executed, what can a developer expect?

Correct Answer: B

QUESTION 12

Refer to HTML below:


This card is smaller.

The width and height of this card is determined by its contents.


Which expression outputs the screen width of the element with the ID card-01?

Correct Answer: A

QUESTION 13

Refer to the code below:
Const resolveAfterMilliseconds = (ms) => Promise.resolve ( setTimeout (( => console.log(ms), ms ));
Const aPromise = await resolveAfterMilliseconds(500); Const bPromise = await resolveAfterMilliseconds(500); Await aPromise, wait bPromise;
What is the result of runningline 05?

Correct Answer: B

QUESTION 14

Refer to the code:
JavaScript-Developer-I dumps exhibit
Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?
A)
JavaScript-Developer-I dumps exhibit
B)
JavaScript-Developer-I dumps exhibit
C)
JavaScript-Developer-I dumps exhibit
D)
JavaScript-Developer-I dumps exhibit

Correct Answer: B

QUESTION 15

A developer has the following array of student test grades: Let arr = [ 7, 8, 5, 8, 9 ];
The Teacher wants to double each score and then see an array of the students who scored more than 15 points.
How should thedeveloper implement the request?

Correct Answer: C