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

What is the correct way to define an object "person" with properties "firstName", "lastName", and "age"?

Options :
Answer: A

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

In the following code snippet, what line of code should be inserted to declare a method named showInfo that outputs the string "Hi" to the console?
class A {
 // insert code here
}
let a = new A();
console.log(a.showInfo()); 

Options :
Answer: B

Question 4

What is the correct output of the following code:
var obj = {
  value: 10
};
var foo = function() {
  console.log(this.value);
};
var bar = function() {
  console.log(this.value);
};
var boundFoo = foo.call(obj);
var boundBar = bar.bind(obj)();
console.log(boundFoo === boundBar); 

Options :
Answer: C

Question 5

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

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.