Exam Code: JSA-41-01
Exam Questions: 160
JSA - Certified Associate JavaScript Programmer
Updated: 04 Sep, 2026
Viewing Page : 1 - 16
Practicing : 1 - 5 of 160 Questions
Question 1

What will be the output when the following code is executed:
class Car { 
 _brand = ""; 
 set brand(value) { 
 this._brand = value; 
 } 
 get brand() { 
 return this._brand; 
 } 
let car = new Car(); 
car.brand = "Toyota"; 
console.log(car.brand) 

Options :
Answer: A

Question 2

What will be the value of result after the following code is executed?
var str = "The quick brown fox";
var result = str.replace(/[aeiou]/gi, '*'); 

Options :
Answer: D

Question 3

What is the output of the following code?
const add = (a, b) => a + b; 
const double = n => add(n, n); 
console.log(double(3));

Options :
Answer: A

Question 4

What is the output of the following code snippet?
class Shape{}; 
class Pyramid extends Shape{}; 
class SquareBasedPyramid extends Pyramid {}; 
let shape = new SquareBasedPyramid (); 
console.log(`${shapeinstance of Shape} ${shape instance of Pyramid } ${shape instance of SquareBasedPyramid }`) 

Options :
Answer: A

Question 5

What is the value of property "y" in object "point2" after the following code is executed?
let point = {x: 100, y: 200}; 
let point2 = {...point}; 
point2.y = 300; 

Options :
Answer: C

Viewing Page : 1 - 16
Practicing : 1 - 5 of 160 Questions

© Copyrights FreePDFQuestions 2026. All Rights Reserved

We use cookies to ensure that we give you the best experience on our website (FreePDFQuestions). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreePDFQuestions.