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

What line of code should be inserted into the Product class definition to add a property price to the class?
class Product { 
 constructor(name) 
 { 
   this.name = name; 
   // insert code here 
 }

Options :
Answer: B

Question 2

What will be the value of result after the following code is executed?
var num1 = 10; 
var num2 = 20; 
var result = (num2 === 20) ? "yes" : "no";

Options :
Answer: C

Question 3

What will be the value of x after the following code is executed?
let x = 10; 
function add5(num) {
 num += 5; 
 return num;
x = add5(x); 

Options :
Answer: C

Question 4

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 5

The shape object can be converted to JSON format using the built-in command:

Options :
Answer: B

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.