JavaScript interview questions
Here's a detailed explanation for each of the JavaScript interview questions: 1. What is JavaScript and what are its key features? JavaScript is a high-level, interpreted programming language primarily used for web development. Key features of JavaScript include its ability to manipulate web page content, interact with the user, and dynamically modify the page structure and style. 2. What is the difference between undefined and null in JavaScript? `undefined` is a variable that has been declared but has not been assigned a value. `null` is an assignment value that represents the intentional absence of any object value. In simple terms, `undefined` is used when a variable is declared but not initialized, while `null` is used when a variable needs to be explicitly set to "no value." 3. Explain the concept of hoisting in JavaScript. - Hoisting is a JavaScript behavior where variable and function declarations are moved to the top of their containing scope during the