Question 3
Consider the following JavaScript code. What will be logged on to the console once the code is executed?
const player = { name: 'Rohit', state: 'Maharastra',}
const batsman = Object.create(player)
console.log(batsman.name)Consider the following JavaScript code. What will be logged on to the console once the code is executed?
const player = { name: 'Rohit', state: 'Maharastra',}
const batsman = Object.create(player)
console.log(batsman.name)Correct answer
Question 3 of 16 in the IIT Madras BS Modern Application Development II (MAD 2) Quiz 1 paper sat on 25 Feb 2024, in the January 2024 term (IIT M DIPLOMA AN2 EXAM QDD2 25 Feb 2024). It carries 2 marks.