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:Sep 18, 2026
Rating
100%

Question 1

Refer to the code below:
< html >
< body >
< div id= " logo " > Hello Logo! < /div >
< button id= " test " > Click me < /button >
< /body >
< script >
function printMessage(event) {
console.log( ' This is a test message ' );
}
let el = document.getElementById( ' test ' );
el.addEventListener( " click " , printMessage, false);
< /script >
< /html >
Which action should be done?

Question 2

Given two expressions, exp1 and exp2, which two valid ways return the logical AND of the two expressions and ensure it is a Boolean?

Question 3

Refer to the code below:
class Student {
constructor(name) {
this._name = name;
}
displayGrade() {
console.log(`${this._name} got 70% on test.`);
}
}
class GraduateStudent extends Student {
constructor(name) {
super(name);
this._name = " Graduate Student " + name;
}
displayGrade() {
console.log(`${this._name} got 100% on test.`);
}
}
let student = new GraduateStudent( " Jane " );
student.displayGrade();
What is the console output?

Question 4

Refer to the code below:
01 function changeValue(param) {
02 param = 5;
03 }
04 let a = 10;
05 let b = a;
06
07 changeValue(b);
08 const result = a + ' - ' + b;
What is the value of result when the code executes?

Question 5

A developer writes the code below to return a message to a user attempting to register a new username. If the username is available, a variable named msg is declared and assigned a value on line 03.
function getAvailabilityMessage(item) {
if (getAvailability(item)) {
var msg = " Username available " ;
return msg;
}
}

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.