Online Access Free JavaScript-Developer-I Exam Questions

Exam Code:JavaScript-Developer-I
Exam Name:Salesforce Certified JavaScript Developer (JS-Dev-101)
Certification Provider:Salesforce
Free Question Number:149
Posted:Nov 07, 2026
Rating
100%

Question 1

A class was written to represent regular items and sale items. Code:
01 let regItem = new Item( ' Scarf ' , 55);
02 let saleItem = new SaleItem( ' Shirt ' , 80, .1);
03 Item.prototype.description = function() { return ' This is a ' + this.name; }
04 console.log(regItem.description());
05 console.log(saleItem.description());
06
07 SaleItem.prototype.description = function() { return ' This is a discounted ' + this.name; }
08 console.log(regItem.description());
09 console.log(saleItem.description());
What is the output?

Question 2

A developer executes:
document.cookie;
document.cookie = ' key=John Smith ' ;
What is the behavior?

Question 3

Given the code:
const copy = JSON.stringify([new String( ' false ' ), new Boolean(false), undefined]); What is the value of copy?

Question 4

Refer to the code below:
01 const addBy = ?
02 const addByEight = addBy(8);
03 const sum = addByEight(50);
Which two functions can replace line 01 and return 58 to sum?

Question 5

A developer executes:
document.cookie;
document.cookie = ' key=John Smith ' ;
What is the behavior?

Recent Comments (The most recent comments are at the top.)

karthik  
 - Oct 23, 2023

Need this exam qns

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.