Free Salesforce Javascript-Developer-I Exam Actual Questions

The questions for Javascript-Developer-I were last updated On May 3, 2024

Question No. 1

The developer wants to test this code:

Const toNumber =(strOrNum) => strOrNum;

Which two tests are most accurate for this code?

Choose 2 answers

Show Answer Hide Answer
Correct Answer: A, C

Question No. 2

Which javascript methods can be used to serialize an object into a string and deserialize

a JSON string into an object, respectively?

Show Answer Hide Answer
Correct Answer: A

Question No. 3

Refer to the code below:

const addBy = ?

const addByEight =addBy(8);

const sum = addBYEight(50);

Which two functions can replace line 01 and return 58 to sum?

Choose 2 answers

Show Answer Hide Answer
Correct Answer: A, D

Question No. 4

Refer to the following code that performs a basic mathematical operation on a provided

input:

function calculate(num) {

Return (num +10) / 3;

}

How should line 02 be written to ensure that x evaluates to 6 in the line below?

Let x = calculate (8);

Show Answer Hide Answer
Correct Answer: B

Question No. 5

Refer to the string below:

const str = 'Salesforce';

Which two statements result in the word 'Sales'?

Choose 2 answers

Show Answer Hide Answer
Correct Answer: B, D