JavaScript Interview Questions
1. What is JavaScript?
JavaScript is a programming language used to create interactive and dynamic web applications.
2. What is the difference between let and const?
let allows reassignment, while const does not allow reassignment after initialization.
3. What is the DOM?
DOM stands for Document Object Model and represents an HTML document as a tree of objects.
4. What is a Promise?
A Promise represents the eventual completion or failure of an asynchronous operation.
5. What is an arrow function?
An arrow function is a shorter syntax for writing functions.