aiotestking uk

JavaScript-Developer-I Exam Questions - Online Test


JavaScript-Developer-I Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

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:
JavaScript-Developer-I dumps exhibit
What is returned by the function call on line 13?

  • A. Undefined
  • B. Line 13 throws an error.
  • C. ‘Undefined values!’
  • D. ‘Null value!’

Answer: A

NEW QUESTION 2
Refer to the code below:
JavaScript-Developer-I dumps exhibit
Line 05 causes an error.
What are the values of greeting and salutation once code completes?

  • A. Greeting is Hello and salutation is Hello, Hello.
  • B. Greeting is Goodbye and salutation is Hello, Hello.
  • C. Greeting is Goodbye and salutation is I say Hello.
  • D. Greeting is Hello and salutation is I say hello.

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?

  • A. 0 0 1 2
  • B. 0 1 2 3
  • C. 0 1 1 2
  • D. 0 1 2 2

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?

  • A. 10
  • B. Nan
  • C. 5
  • D. Undefined

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 ?

  • A. printPrice must be be a named export
  • B. printPrice must be an all export
  • C. printPrice must be the default export
  • D. printPrice must be a multi exportc

Answer: C

NEW QUESTION 6
Given the code below:
JavaScript-Developer-I dumps exhibit
What is logged to the console?

  • A. 1 2 3
  • B. 1 3 2
  • C. 2 1 3
  • D. 2 3 1

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

  • A. const addBy = function(num1){ return function(num2){return num1 + num2;}
  • B. const addBy = function(num1){ return num1 + num2;}
  • C. const addBy = (num1) => num1 + num2 ;
  • D. const addBY = (num1) => (num2) => num1 + num2;

Answer: AD

NEW QUESTION 8
In which situation should a developer include a try .. catch block around their function call ?

  • A. The function has an error that shouldnot be silenced.
  • B. The function results in an out of memory issue.
  • C. The function might raise a runtime error that needs to be handled.
  • D. The function contains scheduled code.

Answer: C

NEW QUESTION 9
A developer writers the code below to calculate the factorial of a given number.
JavaScript-Developer-I dumps exhibit
What isthe result of executing line 04?

  • A. 6
  • B. -Infinity
  • C. RuntimeError

Answer: D

Explanation:
JavaScript-Developer-I dumps exhibit

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?

  • A. ReferenceError: eyeColor is not defined
  • B. ReferenceError: assignment to undeclared variable “Person”
  • C. Developer
  • D. Undefined

Answer: D

NEW QUESTION 11
developer uses the code below to format a date.
JavaScript-Developer-I dumps exhibit
After executing, what is the value offormattedDate?

  • A. May 10, 2020
  • B. June 10, 2020
  • C. October 05, 2020
  • D. November 05, 2020

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);
}
}
JavaScript-Developer-I dumps exhibit
What is the value of array after the code executes?

  • A. [1, 2, 3, 4, 5, 4, 4]
  • B. [1, 2, 3, 4, 4, 5, 4]
  • C. [1, 2, 3, 5]
  • D. [1, 2, 3, 4, 5, 4]

Answer: B

NEW QUESTION 13
Refer to the code below:
JavaScript-Developer-I dumps exhibit
Which code executes sayHello once, two minutes from now?

  • A. setTimeout(sayHello, 12000);
  • B. setInterval(sayHello, 12000);
  • C. setTimeout(sayHello(), 12000);
  • D. delay(sayHello, 12000);

Answer: A

NEW QUESTION 14
Which statement accurately describes an aspect of promises?

  • A. Arguments for the callback function passed to .then() are optional.
  • B. In a.then() function, returning results is not necessary since callbacks will catch the result of a previous promise.
  • C. .then() cannot be added after a catch.
  • D. .then() manipulates and returns the original promise.

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 ?

  • A. node -i index.js
  • B. Node --inspect-brk index.js
  • C. Node inspect index.js
  • D. Node --inspect index.js

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?

  • A. JavaScript-Developer-I dumps exhibit
  • B. JavaScript-Developer-I dumps exhibit
  • C. JavaScript-Developer-I dumps exhibit
  • D. JavaScript-Developer-I dumps exhibit

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?

  • A. 16
  • B. 36
  • C. 11
  • D. 25

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

  • A. Use the document object instead of the window object.
  • B. Assign variables to the global object.
  • C. Create a new window object in the root file.
  • D. Assign variablesto module.exports and require them as needed.

Answer: B

NEW QUESTION 19
......

https://www.certshared.com/exam/JavaScript-Developer-I/ (New 157 Q&As Version)