Free Certified JavaScript Developer I Exam Braindumps (page: 13)

Page 12 of 57

Given the code below:
const delay = sync delay => {
Return new Promise((resolve, reject) => {
setTimeout (resolve,delay);});};
const callDelay =async () =>{
const yup =await delay(1000);
console.log(1);
What is logged to the console?

  1. 1 2 3
  2. 1 3 2
  3. 2 1 3
  4. 2 3 1

Answer(s): D



Refer to the following code:
Let obj ={
Foo: 1,
Bar: 2
}
Let output =[],
for(let something in obj{
output.push(something);
}
console.log(output);
What is the output line 11?

  1. [1,2]
  2. ["bar","foo"]
  3. ["foo","bar"]
  4. ["foo:1","bar:2"]

Answer(s): C



Refer to the code below?
Let searchString = ` look for this ';
Which two options remove the whitespace from the beginning of searchString? Choose 2 answers

  1. searchString.trimEnd();
  2. searchString.trimStart();
  3. trimStart(searchString);
  4. searchString.replace(/*\s\s*/, `');

Answer(s): B,D



Whichthree actions can be using the JavaScript browser console? Choose 3 answers:

  1. View and change DOM the page.
  2. Display a report showing the performance of a page.
  3. Run code that is not related to page.
  4. view , change, and debug the JavaScript code ofthe page.
  5. View and change security cookies.

Answer(s): A,C,D






Post your Comments and Discuss Salesforce Certified JavaScript Developer I exam with other Community members:

Exam Discussions & Posts