Javascript Objects Interview questions (Draft) #6
anburocky3
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Below are the questions:
Q1. What is an object in JavaScript?
Q2. How do you create an object in JavaScript?
Q3. How do you access a property of an object in JavaScript?
Q4. What is the difference between dot notation and square bracket notation in accessing object properties?
Q5. How do you add a new property to an object in JavaScript?
Q6. How do you remove a property from an object in JavaScript?
Q7. How do you check if an object has a property in JavaScript?
Q8. How do you loop through the properties of an object in JavaScript?
Q9. What is a constructor function in JavaScript?
Q10. How do you create an object using a constructor function in JavaScript?
Q11. What is the difference between an object created using object literal notation and an object created using a constructor function?
Q12. What is prototypal inheritance in JavaScript?
Q13. How do you create an object using prototypal inheritance in JavaScript?
Q14. What is the difference between an instance property and a prototype property in JavaScript?
Q15. What is the output of the following code?
Q16. What is the output of the following code?
Q17. What is the output of the following code?
Q18. What is the output of the following code?
Q19. What is the output of the following code?
Q20. What is the output of the following code?
Q21. What is the output of the following code?
Q22. What is the output of the following code?
Q23. What is the output of the following code?
Q24. What is the output of the following code?
Q25. What is the output of the following code?
Beta Was this translation helpful? Give feedback.
All reactions