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 |
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?
A developer executes:
document.cookie;
document.cookie = ' key=John Smith ' ;
What is the behavior?
Given the code:
const copy = JSON.stringify([new String( ' false ' ), new Boolean(false), undefined]); What is the value of copy?
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?
A developer executes:
document.cookie;
document.cookie = ' key=John Smith ' ;
What is the behavior?
Recent Comments (The most recent comments are at the top.)
Need this exam qns