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

Page 10 of 57

Which function should a developer use to repeatedly execute code at a fixed interval ?

  1. setIntervel
  2. setTimeout
  3. setPeriod
  4. setInteria

Answer(s): A



Refer to the code below:
Function changeValue(obj) {
Obj.value = obj.value/2;
}
Const objA = (value: 10);
Const objB = objA;
changeValue(objB);
Const result = objA.value;

What is the value of result after the code executes?

  1. 10
  2. Nan
  3. 5
  4. Undefined

Answer(s): C



Given HTML below:
<div>
<div id ="row-uc"> UniversalContainer</div>
<div id ="row-aa">Applied Shipping</div>
<div id ="row-bt"> Burlington Textiles </div>
</div>
Which statement adds the priority = account CSS class to the universal Containers row ?

  1. Document .querySelector(`#row-uc').classes.push(`priority-account');
  2. Document .queryElementById(`row-uc').addclass(`priority-account');
  3. Document .querySelector(`#row-uc').classList.add(`priority-account');
  4. Document .querySelectorALL(`#row-uc').classList.add(`priority-account');

Answer(s): B



GIven a value, which three options can a developer use to detect if thevalue is NaN? Choose 3 answers !

  1. value == NaN
  2. Object.is(value, NaN)
  3. value === Number.NaN
  4. value ! == value
  5. Number.isNaN(value)

Answer(s): A,E






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

Exam Discussions & Posts