Python Institute JSA-41-01 Practice Exams
Last updated on Oct 21,2026- Exam Code: JSA-41-01
- Exam Name: JSA - Certified Associate JavaScript Programmer
- Certification Provider: Python Institute
- Latest update: Oct 21,2026
Question #25
};
- A . Object.defineProperty(product, ‘discountedPrice’, { value: 50, writable: false });
- B . Object.defineProperty(product, ‘discountedPrice’, { value: 50, writable: true });
- C . product.discountedPrice = 50;
- D . Object.defineProperty(product, ‘discountedPrice’, { value: 50, configurable: false });
Correct Answer: A
Question #25
};
- A . Object.defineProperty(product, ‘discountedPrice’, { value: 50, writable: false });
- B . Object.defineProperty(product, ‘discountedPrice’, { value: 50, writable: true });
- C . product.discountedPrice = 50;
- D . Object.defineProperty(product, ‘discountedPrice’, { value: 50, configurable: false });
Correct Answer: A
Question #25
};
- A . Object.defineProperty(product, ‘discountedPrice’, { value: 50, writable: false });
- B . Object.defineProperty(product, ‘discountedPrice’, { value: 50, writable: true });
- C . product.discountedPrice = 50;
- D . Object.defineProperty(product, ‘discountedPrice’, { value: 50, configurable: false });
Correct Answer: A
Question #34
console.log(product.discount(100));
- A . The Product class correctly defines a constructor to initialize name and price.
- B . The discount method is incorrectly defined and will throw an error.
- C . The product object is an instance of the Product class.
- D . The constructor method should not be used to initialize name and price.
Correct Answer: A, C
Question #34
console.log(product.discount(100));
- A . The Product class correctly defines a constructor to initialize name and price.
- B . The discount method is incorrectly defined and will throw an error.
- C . The product object is an instance of the Product class.
- D . The constructor method should not be used to initialize name and price.
Correct Answer: A, C
Question #34
console.log(product.discount(100));
- A . The Product class correctly defines a constructor to initialize name and price.
- B . The discount method is incorrectly defined and will throw an error.
- C . The product object is an instance of the Product class.
- D . The constructor method should not be used to initialize name and price.
Correct Answer: A, C
Question #37
let totalRoles = roles.size;
- A . The set contains ‘admin’ and ‘editor’ with a size of 2, and hasAdmin is true.
- B . The set contains ‘admin’ only with a size of 1, and hasAdmin is true.
- C . The set contains ‘superadmin’ and ‘admin’ with a size of 2, and hasAdmin is true.
- D . The set is empty with a size of 0, and hasAdmin is false.
Correct Answer: C
Question #38
console.log(myDog.getName());
What will be the output of the above code?
- A . Mammal and Buddy
- B . TypeError and Buddy
- C . Dog and Buddy
- D . undefined and Buddy
Correct Answer: A
Question #38
console.log(myDog.getName());
What will be the output of the above code?
- A . Mammal and Buddy
- B . TypeError and Buddy
- C . Dog and Buddy
- D . undefined and Buddy
Correct Answer: A
Question #38
console.log(myDog.getName());
What will be the output of the above code?
- A . Mammal and Buddy
- B . TypeError and Buddy
- C . Dog and Buddy
- D . undefined and Buddy
Correct Answer: A