100 most asked JavaScript Interview Questions and Answers - Part 1

TLDRJavaScript is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions. It is most well-known as the scripting language for Web pages, but many non-browser environments also use it, such as Node.js, Apache CouchDB, and Adobe Acrobat.

12m read time From alimammiya.hashnode.dev
Post cover image
Table of contents
JavaScript Interview Questions and Answers SeriesQuestions1. What is JavaScript?2. What are the primitive types in JavaScript?3. What's the difference between undefined and null in JavaScript?4. What are the Escape Characters in JavaScript?5. What does the Logical AND operator do?6. What does the Logical OR operator do?7. What is the fastest way to convert a string to a number?8. What are the different types of Error Name values in JavaScript?9. Please explain Self Invoking Function.10. Explain difference between function declaration and function expression.11. What is the DOM?12. Please explain difference between attributes and property?13. What are cookies? How will you create, read, and delete a cookie using JavaScript?14. What is Event Propagation?15. What is Event Bubbling?16. What is Event Capturing?17. Explain difference between event.preventDefault() and event.stopPropagation() methods?18. How to know if the event.preventDefault() method was used in an element?19. What is Closure?20. How many ways can you create an array in JavaScript?21. How will you empty an array in JavaScript?
13 Comments

Sort: