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

Page 7 of 20

In the browser, the window object is often used to assign variables that require the broadcast scope in an application Node is application do not have access to the window object by default.

Which two methods are used to address this? Choose 2 answer

  1. Use the document instead of the window object.
  2. Assign variables to the global object.
  3. Create a new window object in the root file.
  4. Assign variables to module, exports and require them as needed.

Answer(s): A,C



Refer to the code below:

let productSKU = '8675309,;

A developer has a requirement to generate SKU numbers that are always 10 characters log, starting with `sku', and padded with zeros.

Which statement assigned the value skuooooooooo86675309?

  1. productSKU = productSKU. Padstart (19, `0' padstart (`sku') ;
  2. productSKU = productSKU. PadEnd (16, `0' padstart (`sku') ;
  3. productSKU = productSKU. PadEnd (16, `0' padstart (19, `sku') ;
  4. productSKU = productSKU. Padstart (16, `0' padstart (19, `sku') ;

Answer(s): D



Given the code below:


Which method can be provide a visual representation of the list if users and to allow sorting by the name or email attributes.

  1. Console,table (userslist);
  2. Console.groupCollapsed (userslist);
  3. Console.info (userlist);
  4. Console.group (userList);

Answer(s): D



The developer wants to test the code:

Const toNumber = (strOrNum) => + strOrNum;

Which two tests are most accurate for this code? Choose 2 answers

  1. Console.assert (toNumber (`2') === 2 ) ;
  2. Console. Assert (Number,isNaN (toNumber ( ) ));
  3. Console,assert (toNumber ( `-3') < 0);
  4. Console,assert (toNumber ( ) === NaN ) ;

Answer(s): A,D






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

Certified JavaScript Developer I Discussions & Posts