PrepAway - Latest Free Exam Questions & Answers

Tag: Certified JavaScript Developer I

A developer is creating a simple webpage with a button.

A developer is creating a simple webpage with a button. When a user clicks this button for the first time, a message is displayed. The developer wrote the JavaScript code below, but something is missing. The message gets displayed every time a user clicks the button, instead of just the first time. Which two code […]

Which statement can a developer apply to increment the browser’s navigation history without a page refresh?

Which statement can a developer apply to increment the browser’s navigation history without a page refresh? A. window.history.pushState(newStateObject); B. window.history.pushState(newStateObject, ‘’, null); C. window.history.state.push(newStateObject); D. window.history.replaceState(newStateObject, ‘’, null); Reference: https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState

A test has a dependency on database.query.

A test has a dependency on database.query. During the test, the dependency is replaced with an object called database with the method, query, that returns an array. The developer needs to verify how many times the method was called and the arguments used each time. Which two test approaches describe the requirement? (Choose two.) A. […]

At Universal Containers, every team has its own way of copying JavaScript objects.

At Universal Containers, every team has its own way of copying JavaScript objects. The code snippet shows as implementation from one team: What is the output of the code execution? A. Hello John Doe B. Hello Dan Doe C. TypeError: dan.name is not a function D. TypeError: Assignment to constant variable


Page 1 of 212