Salesforce JAVASCRIPT-DEVELOPER-I Exam (page: 8)
Salesforce Certified JavaScript Developer I
Updated on: 25-Dec-2025

Given the following code:
Let x =null;
console.log(typeof x);
What is the output of the line 02?

  1. "Null"
  2. "X"
  3. "Object"
  4. "undefined"

Answer(s): C



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



Viewing Page 8 of 46



Share your comments for Salesforce JAVASCRIPT-DEVELOPER-I exam with other users:

Gopinadh 8/9/2023 4:05:00 AM

question number 2 is indicating you are giving proper questions. observe and change properly.
Anonymous