JS Institute JSA-41-01

Page:    1 / 32   
Total 160 questions | Updated On: Apr 22, 2024
Question 1

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; 


Answer: C
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, '*'); 


Answer: D
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); 


Answer: C
Question 4

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


Answer: B
Question 5

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}`);


Answer: B
Page:    1 / 32   
Total 160 questions | Updated On: Apr 22, 2024

Quickly grab our JSA-41-01 product now and kickstart your exam preparation today!

Name: JSA - Certified Associate JavaScript Programmer
Exam Code: JSA-41-01
Certification: JavaScript
Vendor: JS Institute
Total Questions: 160
Last Updated: Apr 22, 2024