Testking offers free demo for JavaScript-Developer-I exam. "Salesforce Certified JavaScript Developer I", also known as JavaScript-Developer-I exam, is a Salesforce Certification. This set of posts, Passing the Salesforce JavaScript-Developer-I exam, will help you answer those questions. The JavaScript-Developer-I Questions & Answers covers all the knowledge points of the real exam. 100% real Salesforce JavaScript-Developer-I exams and revised by experts!
Online JavaScript-Developer-I free questions and answers of New Version:
NEW QUESTION 1
Refer to the following code:
What is returned by the function call on line 13?
Answer: A
NEW QUESTION 2
Refer to the code below:
Line 05 causes an error.
What are the values of greeting and salutation once code completes?
Answer: A
NEW QUESTION 3
Given the following code: Counter = 0;
const logCounter = () => { console.log(counter);
);
logCounter(); setTimeout(logCOunter, 1100); setInterval(() => {
Counter++ logCounter();
}, 1000);
What is logged by the first four log statements?
Answer: C
NEW QUESTION 4
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?
Answer: C
NEW QUESTION 5
A developer wants to leverage a module to print a price in pretty format, and has imported a method as shown below:
Import printPrice from‘/path/PricePrettyPrint.js’;
Based on the code, what must be true about the printPrice function of the PricePrettyPrint module for this import to work ?
Answer: C
NEW QUESTION 6
Given the code below:
What is logged to the console?
Answer: D
NEW QUESTION 7
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
Answer: AD
NEW QUESTION 8
In which situation should a developer include a try .. catch block around their function call ?
Answer: C
NEW QUESTION 9
A developer writers the code below to calculate the factorial of a given number.
What isthe result of executing line 04?
Answer: D
Explanation:
NEW QUESTION 10
Refer to the code below: FunctionPerson(firstName, lastName, eyecolor) { this.firstName =firstName;
this.lastName = lastName;
this.eyeColor = eyeColor;
}
Person.job = ‘Developer’;
const myFather = new Person(‘John’, ‘Doe’); console.log(myFather.job);
What is the output after the codeexecutes?
Answer: D
NEW QUESTION 11
developer uses the code below to format a date.
After executing, what is the value offormattedDate?
Answer: A
NEW QUESTION 12
Refer to the code snippet below: Let array = [1, 2, 3, 4, 4, 5, 4, 4];
For (let i =0; i < array.length; i++) if (array[i] === 4) {
array.splice(i, 1);
}
}
What is the value of array after the code executes?
Answer: B
NEW QUESTION 13
Refer to the code below:
Which code executes sayHello once, two minutes from now?
Answer: A
NEW QUESTION 14
Which statement accurately describes an aspect of promises?
Answer: A
NEW QUESTION 15
A developer is debugging a web server that uses Node.js The server hits a runtimeerror every third request to an important endpoint on the web server.
The developer added a break point to the start script, that is at index.js at he root of the server’s source code. The developer wants to make use of chrome DevTools to debug. Which command can be run to access DevTools and make sure the breakdown is hit ?
Answer: D
NEW QUESTION 16
A developer is setting up a new Node.js server with a client library that is built using events and callbacks. The library:
* Will establish aweb socket connection and handle receipt of messages to the server
* Will be imported with require, and made available with a variable called we.
The developer also wants to add error logging if a connection fails.
Given this info, which code segment shows the correct way to set up a client with two events that listen at execution time?
Answer: C
NEW QUESTION 17
Refer to following code block:
Let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,];
Let output =0;
For (let num of array){ if (output >0){
Break;
}
if(num % 2 == 0){
Continue;
}
Output +=num;
What is the value of output after the code executes?
Answer: A
NEW QUESTION 18
In the browser, the window object is often used to assign variables that require the broadest scope in an application Node.js application does not have access to the window object by default.
Which two methods are used to address this ? Choose 2 answers
Answer: B
NEW QUESTION 19
......
https://www.certshared.com/exam/JavaScript-Developer-I/ (New 157 Q&As Version)