JavaScript-Developer-I Premium Bundle

JavaScript-Developer-I Premium Bundle

Salesforce Certified JavaScript Developer I Certification Exam

4.5 
(55815 ratings)
157 QuestionsPractice Tests
157 PDFPrint version
May 20, 2024Last update

Salesforce JavaScript-Developer-I Free Practice Questions

Exam Code: JavaScript-Developer-I (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Salesforce Certified JavaScript Developer I
Certification Provider: Salesforce
Free Today! Guaranteed Training- Pass JavaScript-Developer-I Exam.

Also have JavaScript-Developer-I free dumps questions for you:

NEW QUESTION 1
Refer to the code below:
Async funct on functionUnderTest(isOK) { If (isOK) return ‘OK’ ;
Throw new Error(‘not OK’);
)
Which assertion accuretely tests the above code?

  • A. Console.assert (await functionUnderTest(true), ‘ OK ’)
  • B. Console.assert (await functionUnderTest(true), ‘ not OK ’)
  • C. Console.assert (awaitfunctionUnderTest(true), ‘ not OK ’)
  • D. Console.assert (await functionUnderTest(true), ‘OK’)

Answer: D

NEW QUESTION 2
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 3
Which three browser specific APIs are available for developers to persist data between page loads ? Choose 3 answers

  • A. IIFEs
  • B. indexedDB
  • C. Global variables
  • D. Cookies
  • E. localStorage.

Answer: ABE

NEW QUESTION 4
Refer to the following code:
Let sampleText = ‘The quick brown foxjumps’;
A developer needs to determine if a certain substring is part of a string. Which three expressions return true for the given substring ?
Choose 3 answers

  • A. sampleText.includes(‘fox’);
  • B. sampleText.includes(‘ quick ’, 4);
  • C. sampleText.includes(‘Fox ’, 3)
  • D. sampleText.includes(‘ fox ’);
  • E. sampleText.includes(‘ quick ’) !== -1;

Answer: BDE

NEW QUESTION 5
Given the code below:
JavaScript-Developer-I dumps exhibit
What should a developer insert at line 15 to output the following message using the method ?
> SNEGeneziz is loading a cartridgegame: Super Monic 3x Force . . .

  • A. Console16bit.prototype.load(gamename) = function() {
  • B. Console16bit.prototype.load = function(gamename) {
  • C. Console16bit = Object.create(GameConsole.prototype).load = function (gamename) {
  • D. Console16bit.prototype.load(gamename) {

Answer: B

NEW QUESTION 6
Refer to the HTML below:



  • Leo

  • Tony

  • Tiger



Which JavaScript statementresults in changing “ Tony” to “Mr. T.”?

  • A. document.querySelectorAll(‘$main $TONY’)[removed] = ’ M
  • B. ’;
  • C. document.querySelector(‘$main li:second-child’)[removed] = ’ M
  • D. ’;
  • E. document.querySelector(‘$main li.Tony’)[removed] = ’ M
  • F. ’;
  • G. document.querySelector(‘$main li:nth-child(2)’),innerHTML = ’ M
  • H. ’;

Answer: D

NEW QUESTION 7
Refer to following code: class Vehicle { constructor(plate) { This.plate =plate;
}
}
Class Truck extends Vehicle { constructor(plate, weight) {
//Missing code This.weight = weight;
}
displayWeight() {
console.log(‘Thetruck ${this.plate} has a weight of ${this.weight} lb.’);}} Let myTruck = new Truck(‘123AB’, 5000);
myTruck.displayWeight();
Which statement should be added to line 09 for the code to display ‘The truck 123AB has a weight of 5000lb.’?

  • A. Super.plate =plate;
  • B. super(plate);
  • C. This.plate =plate;
  • D. Vehicle.plate = plate;

Answer: B

NEW QUESTION 8
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 9
Which option is true about the strict mode in imported modules?

  • A. Add the statement use non-strict, before any other statements in the module to enable not-strict mode.
  • B. You can only reference notStrict() functions from the imported module.
  • C. Imported modules are in strict mode whether you declare them as such or not.
  • D. Add the statement use strict =false; before any other statements in the module to enable not- strict mode.

Answer: B

NEW QUESTION 10
developer removes the HTML class attribute from the checkout button, so now it is simply:
<button>Checkout</button>.
There is a test to verifythe existence of the checkout button, however it looks for a button with class= “blue”. The test fails because no such button is found.
Which type of test category describes this test?

  • A. True positive
  • B. True negative
  • C. False positive
  • D. False negative

Answer: D

NEW QUESTION 11
Refer to the code below:
Let foodMenu1 =[‘pizza’, ‘burger’, ‘French fries’]; Let finalMenu = foodMenu1; finalMenu.push(‘Garlic bread’);
What is the value of foodMenu1 after the code executes?

  • A. [ ‘pizza’,’Burger’, ‘French fires’, ‘Garlic bread’]
  • B. [ ‘pizza’,’Burger’, ‘French fires’]
  • C. [ ‘Garlic bread’ , ‘pizza’,’Burger’, ‘French fires’ ]
  • D. [ ‘Garlic bread’]

Answer: B

NEW QUESTION 12
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 13
Refer to the code below:
for(let number =2 ; number <= 5 ; number += 1 ) {
// insert code statement here
}
Thedeveloper needs to insert a code statement in the location shown. The code statement has these requirements:
* 1. Does require an import
* 2. Logs an error when the boolean statement evaluates to false
* 3. Works in both the browser and Node.js
Which meet the requirements?

  • A. assert (number % 2 === 0);
  • B. console.error(number % 2 === 0);
  • C. console.debug(number % 2 === 0);
  • D. console.assert(number % 2 === 0);

Answer: B

NEW QUESTION 14
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 15
Refer to the code below: Let textValue = ’1984’;
Which code assignment shows a correct way to convert this string to an integer?

  • A. let numberValue = Number(textValue);
  • B. Let numberValue = (Number)textValue;
  • C. Let numberValue = textValue.toInteger();
  • D. Let numberValue = Integer(textValue);

Answer: A

NEW QUESTION 16
Why would a developer specify a package.jason as a developed forge instead of a dependency ?

  • A. It is required by the application in production.
  • B. It is only needed for local development and testing.
  • C. Other requiredpackages depend on it for development.
  • D. It should be bundled when the package is published.

Answer: B

NEW QUESTION 17
Which two console logs output NaN? Choose 2 answers | |

  • A. console.log(10 / Number('5) ) ;
  • B. console.log(parseInt ' ("two')) ;
  • C. console.log(10 / 0);
  • D. console.loeg(10 / 'five');

Answer: BD

NEW QUESTION 18
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 19
Which statement accurately describes the behaviour of the async/ await keyworks ?

  • A. The associated class contains some asynchronous functions.
  • B. The associated function will always return apromise
  • C. The associated function can only be called via asynchronous methods
  • D. The associated sometimes returns a promise.

Answer: B

NEW QUESTION 20
......

P.S. Easily pass JavaScript-Developer-I Exam with 157 Q&As Thedumpscentre.com Dumps & pdf Version, Welcome to Download the Newest Thedumpscentre.com JavaScript-Developer-I Dumps: https://www.thedumpscentre.com/JavaScript-Developer-I-dumps/ (157 New Questions)


START JavaScript-Developer-I EXAM