1. What is JavaScript, and how does it differ from Java?
2. What are the data types supported by JavaScript?
3. Explain the concept of variables in JavaScript.
4. How do you declare a variable in JavaScript?
5. What is the difference between let, const, and var?
6. How do you create a function in JavaScript?
7. What are the different ways to define a function in JavaScript?
8. Explain the concept of scope in JavaScript.
9. What is an array in JavaScript, and how do you create one?
10. How do you access elements in an array?
11. What are objects in JavaScript, and how are they different from arrays?
12. How do you create an object in JavaScript?
13. What is JSON, and how is it used in JavaScript?
14. What is a string, and how can you manipulate it in JavaScript?
15. How do you concatenate strings in JavaScript?
16. What are template literals, and how do you use them?
17. Explain the concept of operators in JavaScript.
18. What are the different types of operators in JavaScript?
19. What is a conditional statement, and how is it used in JavaScript?
20. Explain the difference between if, else if, and else statements.
21. How do you create a switch statement in JavaScript?
22. What is a loop, and what types of loops does JavaScript support?
23. How do you create a for loop in JavaScript?
24. What is a while loop, and how does it work?
25. How do you create a do...while loop in JavaScript?
26. What are functions as first-class citizens in JavaScript?
27. How can you pass arguments to a function in JavaScript?
28. What is a callback function in JavaScript?
29. Explain the concept of hoisting in JavaScript.
30. What is an immediately invoked function expression (IIFE)?
31. What is the purpose of the return statement in a function?
32. How do you handle errors in JavaScript?
33. What is the try...catch statement in JavaScript?
34. How can you create an empty object in JavaScript?
35. What is the purpose of the this keyword in JavaScript?
36. Explain the concept of closures in JavaScript.
37. What is an arrow function, and how does it differ from traditional functions?
38. How do you create an array of objects in JavaScript?
39. What is destructuring in JavaScript, and how is it used?
40. Explain the concept of the map() function in JavaScript.