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

Actualtests JavaScript-Developer-I Questions are updated and all JavaScript-Developer-I answers are verified by experts. Once you have completely prepared with our JavaScript-Developer-I exam prep kits you will be ready for the real JavaScript-Developer-I exam without a problem. We have Improve Salesforce JavaScript-Developer-I dumps study guide. PASSED JavaScript-Developer-I First attempt! Here What I Did.

Free JavaScript-Developer-I Demo Online For Salesforce Certifitcation:

NEW QUESTION 1
Teams at Universal Containers(UC) work on multiple JavaScript projects at the same time. UC is thinking about reusability and how each team can benefit from the work of others. Going open-source or public is not an option at this time.
Which option is available to UC with npm?

  • A. Private packages can be scored, and scopes can be associated to a private registries.
  • B. Private registries are not supported by npm, but packages can be installed via URL.
  • C. Private packages are not supported, but they can use another package manager like yarn.
  • D. Private registries are not supported by npm, but packages can be installed via git.

Answer: A

NEW QUESTION 2
Refer to the code below:
Let car1 = new Promise((_ , reject) => setTimeout(reject, 2000, “car 1 crashed in” =>
Let car2 =new Promise(resolve => setTimeout(resolve, 1500, “car 2 completed”) Let car3 =new Promise(resolve => setTimeout(resolve, 3000, “car 3 completed”) Promise.race(( car1, car2, car3))
.t hen (value => (
Let result = ‘$(value) the race.’;)}
.catch(arr => {
console.log(“Race is cancelled.”, err);
});
What isthe value of result when Promise.race executes?

  • A. Car 3 completes the race
  • B. Car 2 completed the race.
  • C. Car 1 crashed in the race.
  • D. Race is cancelled.

Answer: B

NEW QUESTION 3
Given the following code:
document.body.addEventListener(‘ click ’, (event) => { if (/* CODE REPLACEMENT HERE */) {
console.log(‘button clicked!’);
)
});
Which replacement for the conditional statement on line 02 allows a developer to correctly determine that a button on page is clicked?

  • A. Event.clicked
  • B. e.nodeTarget ==this
  • C. event.target.nodeName == ‘BUTTON’
  • D. button.addEventListener(‘click’)

Answer: C

NEW QUESTION 4
Giventhe code below:
const copy = JSON.stringify([ new String(‘ false ’), new Bollean( false ), undefined ]); What is the value of copy?

  • A. -- [ \”false\” , { } ]-
  • B. -- [ false, { } ]-
  • C. -- [ \”false\” , false, undefined ]-
  • D. -- [ \”false\” ,false, null ]-

Answer: D

NEW QUESTION 5
Refer to code below:
Const objBook = { Title: ‘Javascript’,
};
Object.preventExtensions(objBook); ConstnewObjBook = objBook; newObjectBook.author = ‘Robert’;
What are the values of objBook and newObjBook respectively ?

  • A. [title: “javaScript”] [title: “javaScript”]
  • B. {author: “Robert”, title: “javaScript} Undefined
  • C. {author: “Robert”, title: “javaScript}{author: “Robert”, title: “javaScript}
  • D. {author: “Robert”}{author: “Robert”, title: “javaScript}

Answer: A

NEW QUESTION 6
Refer to the code below: Let str = ‘javascript’; Str[0] = ‘J’;
Str[4] = ’S’;
After changing the string index values, the value of str is ‘javascript’. What is the reason for this value:

  • A. Non-primitive values are mutable.
  • B. Non-primitive values are immutable.
  • C. Primitive values are mutable.
  • D. Primitive values are immutable.

Answer: D

NEW QUESTION 7
A class was written to represent items for purchase in an online store, and a second class Representing items that are on sale at a discounted price. THe constructor sets the name to the first value passed in. The pseudocode is below:
JavaScript-Developer-I dumps exhibit
There is a new requirement for a developer to implement a description method that will return a brief description for Item and SaleItem.
JavaScript-Developer-I dumps exhibit
What is the output when executing the code above ?

  • A. This is a ScarfUncaught TypeError:saleItem.description is not a function This is aScarfThis is a discounted Shirt
  • B. This is a Scarf This is a Shirt This is a ScarfThis is a discounted Shirt
  • C. This is a Scarf This is a ShirtThis is a discounted Scarf This is a discounted Shirt
  • D. Thisis aScarfUncaught TypeError: saleItem.description is not a function This is a ShirtThis is a did counted Shirt

Answer: B

NEW QUESTION 8
Refer to the code below:
Let inArray =[ [ 1, 2 ] , [ 3, 4, 5 ] ];
Which two statements result in the array [1, 2, 3, 4, 5] ?
Choose 2 answers

  • A. [ ]. Concat.apply ([ ], inArray);
  • B. [ ]. Concat (... inArray);
  • C. [ ]. concat.apply(inArray, [ ]);
  • D. [ ]. concat ( [ ….inArray ] );

Answer: AB

NEW QUESTION 9
A developer at Universal Containers creates a new landing page based on HTML, CSS, and JavaScript TO ensure that visitors have a good experience, a script named personaliseContext needs to be executed when the webpage is fully loaded (HTML content and all related files ), in order to do some custom initialization.
Which statement should beused to call personalizeWebsiteContent based on the above business requirement?

  • A. document.addEventListener(‘’onDOMContextLoaded’, personalizeWebsiteContext);
  • B. window.addEventListener(‘load’,personalizeWebsiteContext);
  • C. window.addEventListener(‘onload’, personalizeWebsiteContext);
  • D. Document.addEventListener(‘‘’DOMContextLoaded’ , personalizeWebsiteContext);

Answer: B

NEW QUESTION 10
A developer is asked to fix some bugs reported by users. Todo that, the developer adds a breakpoint for debugging.
Function Car (maxSpeed, color){ This.maxspeed =masSpeed; This.color = color;
Let carSpeed = document.getElementById(‘ CarSpeed’); Debugger;
Let fourWheels =new Car (carSpeed.value, ‘red’);
When the code execution stops at the breakpoint on line 06, which two types of information are available in the browser console ?
Choose 2 answers:

  • A. The values of the carSpeed and fourWheels variables
  • B. A variable displaying the number of instances created for theCar Object.
  • C. The style, event listeners and other attributes applied to the carSpeed DOM element
  • D. The information stored in the window.localStorage property

Answer: CD

NEW QUESTION 11
GIven a value, which three options can a developer use to detect if the value is NaN? Choose 3 answers !

  • A. value == NaN
  • B. Object.is(value, NaN)
  • C. value === Number.NaN
  • D. value ! == value
  • E. Number.isNaN(value)

Answer: AE

NEW QUESTION 12
A developer wants to create an object from a function in the browser using the code below:
Function Monster() { this.name =‘hello’ }; Const z = Monster();
What happens due to lack of the new keyword on line 02?

  • A. The z variable is assigned the correct object.
  • B. The z variable is assigned the correct object but this.name remains undefined.
  • C. Window.name is assigned to ‘hello’ and the variable z remains undefined.
  • D. Window.m is assigned the correct object.

Answer: C

NEW QUESTION 13
Given the following code: document.body.addEventListener(‘ click ’, (event) => { if (/* CODE REPLACEMENT HERE */) {
console.log(‘button clicked!’);
)
});
Which replacement for the conditional statement on line 02 allows a developer to correctly determine that a button on page is clicked?

  • A. Event.clicked
  • B. e.nodeTarget ==this
  • C. event.target.nodeName == ‘BUTTON’
  • D. button.addEventListener(‘click’)

Answer: C

NEW QUESTION 14
A developer is working on an ecommerce website where the delivery date is dynamically calculated based on the current day. The code line below is responsible for this calculation. Const deliveryDate = new Date ();
Due to changes in the business requirements, the delivery date must now be today’s date + 9 days.
Which code meets thisnew requirement?

  • A. deliveryDate.setDate(( new Date ( )).getDate () +9);
  • B. deliveryDate.setDate( Date.current () + 9);
  • C. deliveryDate.date = new Date(+9) ;
  • D. deliveryDate.date = Date.current () + 9;

Answer: A

NEW QUESTION 15
developer wants to use a module nameduniversalContainersLib and them call functions from it.
How should a developer import every function from the module and then call the fuctions foo and bar ?

  • A. import * ad lib from ‘/path/universalContainersLib.js’; lib.foo();lib.bar();
  • B. import (foo, bar) from ‘/path/universalContainersLib.js’; foo();bar();
  • C. import all from ‘/path/universalContaineraLib.js’; universalContainersLib.foo(); universalContainersLib.bar();
  • D. import * from ‘/path/universalContaineraLib.js’; universalContainersLib.foo(); universalContainersLib.bar();

Answer: A

NEW QUESTION 16
Refer to the following code:
JavaScript-Developer-I dumps exhibit
What is the output line 11?

  • A. [1,2]
  • B. [“bar”,”foo”]
  • C. [“foo”,”bar”]
  • D. [“foo:1”,”bar:2”]

Answer: C

NEW QUESTION 17
Which three actions can be using the JavaScript browser console? Choose 3 answers:

  • A. View and change DOM the page.
  • B. Display a report showing the performance of a page.
  • C. Run code that is not related to page.
  • D. view , change, and debug the JavaScript code of the page.
  • E. View and change security cookies.

Answer: ACD

NEW QUESTION 18
Refer to HTML below:
<p> The current status of an Order: <span id =”status”> In Progress </span> </p>.
Which JavaScript statement changes the text ‘In Progress’ to ‘Completed’ ?

  • A. document.getElementById(“status”).Value = ’Completed’ ;
  • B. document.getElementById(“#status”).innerHTML = ’Completed’ ;
  • C. document.getElementById(“status”).innerHTML = ’Completed’ ;
  • D. document.getElementById(“.status”).innerHTML = ’Completed’ ;

Answer: C

NEW QUESTION 19
......

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