Exam Code: JSA-41-01
Exam Questions: 160
JSA - Certified Associate JavaScript Programmer
Updated: 24 Nov, 2025
Viewing Page : 1 - 16
Practicing : 1 - 5 of 160 Questions
Question 1

What will be the output of the following code?
const a = { x: 1 };
const b = { y: 2 };
const c = { ...a, b, z: 3 };
console.log(c);

Options :
Answer: C

Question 2

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 3

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

Options :
Answer: B

Question 4

What will appear on the console after executing the following code?
let car = { model: "Tesla", year: 2022 }; 
let vehicle = {...car, color: "red"}; 
car.year = 2021; 
console.log(`${vehicle.model} ${vehicle.year} ${vehicle.color}`);

Options :
Answer: B

Question 5

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

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

© Copyrights FreePDFQuestions 2025. 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.