Q1 | Which of the following methods is used to add a new property to an object in JavaScript? | |
---|
Q2 | How do you destructure an object in JavaScript? | |
---|
Q3 | What is destructuring in JavaScript? | |
---|
Q4 | What is the purpose of the Object.prototype.hasOwnProperty() method in JavaScript? | |
---|
Q5 | What does the Object.prototype property represent in JavaScript? | |
---|
Q6 | Which of the following methods can be used to check if a certain property exists in an object i... | |
---|
Q7 | Which built-in method is used to serialize an object into a JSON string in JavaScript? | |
---|
Q8 | What does it mean to serialize an object in JavaScript? | |
---|
Q9 | Which method can be used to create a new object that inherits properties from an existing objec... | |
---|
Q10 | How can you extend an object in JavaScript? | |
---|
Q11 | What is the difference between using for...in loop and Object.keys() to enumerate properties of... | |
---|
Q12 | How can you enumerate all the properties of an object in JavaScript? | |
---|
Q13 | How can you modify the value of an existing property in an object? | |
---|
Q14 | How can you add a new property to an object in JavaScript? | |
---|
Q15 | How can you set the value of a property in an object in JavaScript? | |
---|
Q16 | How can you query a property value from an object in JavaScript? | |
---|
Q17 | Which of the following methods can be used to create objects with specified prototypes in JavaS... | |
---|
Q18 | Which of the following methods can be used to create objects in JavaScript? | |
---|
Q19 | How can you check if an object has a specific property in JavaScript? | |
---|
Q20 | Which of the following methods can be used to add or modify properties of an object in JavaScri... | |
---|
Q21 | Which of the following methods is used to define an object in JavaScript? | |
---|
Q22 | How do you define an object in JavaScript? | |
---|
Q23 | What happens if you try to use the `this` keyword outside of any object? | |
---|
Q24 | What does the `this` keyword refer to in JavaScript? | |
---|
Q25 | Which of the following statements is true about accessing object properties in JavaScript? | |
---|
Q26 | How can you access the value of a property in an object in JavaScript? | |
---|
Q27 | How can you delete a property from an object in JavaScript? | |
---|
Q28 | Which of the following statements about constructor functions in JavaScript is true? | |
---|
Q29 | What is a constructor function in JavaScript? | |
---|
Q30 | Which method allows explicit object coercion in JavaScript? | |
---|