1. What are the key features of JavaScript? 2. What is the difference between var, let, and const? 3. What are JavaScript data types? 4. Explain the difference between == and ===. 5. What are JavaScript closures? Provide an example. 6. What is the difference between null and undefined? 7. Explain Hoisting in JavaScript. 8. What are JavaScript promises, and why are they used? 9. What is the difference between synchronous and asynchronous programming? 10. How does the typeof operator work?
Intermediate JavaScript Interview Questions
1. What is the difference between function declarations and function expressions? 2. Explain the concept of "Prototype" in JavaScript. 3. What is the event loop, and how does it work? 4. What is this in JavaScript, and how is it determined? 5. What are arrow functions, and how are they different from regular functions? 6. Explain the difference between call(), apply(), and bind(). 7. What are JavaScript modules? Explain import and export. 8. What is destructuring in JavaScript? Provide examples. 9. What are higher-order functions? Provide an example. 10. What are the differences between for, forEach(), map(), and reduce() loops?
Advanced JavaScript Interview Questions
1. What is the difference between deep copy and shallow copy? How can you implement them? 2. Explain the concept of "Currying" in JavaScript. Provide an example. 3. What is memoization in JavaScript? How can it improve performance? 4. What is the difference between setTimeout and setInterval? 5. Explain the difference between async/await and Promises. 6. What is the difference between localStorage, sessionStorage, and cookies? 7. What is a JavaScript generator, and how is it used? 8. What are Web Workers, and when would you use them? 9. How does JavaScript handle memory management? Explain garbage collection. 10. What is the difference between Object.freeze() and Object.seal()?
JavaScript ES6+ Features
1. What are default parameters in JavaScript? 2. What are template literals, and how are they used? 3. What is destructuring assignment? 4. What are rest and spread operators? 5. What is the difference between Map and Object? 6. What are Set and WeakSet in JavaScript? 7. What are async and await, and how are they used in JavaScript? 8. Explain the use of Promise.all() and Promise.race(). 9. What is the difference between let and var in terms of scope and hoisting? 10. What are JavaScript symbols, and how are they used?
Scenario-Based JavaScript Questions
1. How would you debounce a function in JavaScript? 2. How would you implement a deep clone of an object? 3. How can you detect if an object is an array? 4. How would you handle errors in a JavaScript async function? 5. How would you polyfill a JavaScript function like Array.prototype.map?
JavaScript Coding Challenges
1. Write a function to reverse a string. 2. Write a function to check if a string is a palindrome. 3. Implement a function to flatten a nested array. 4. Write a function to find the largest number in an array. 5. Implement a function to remove duplicates from an array. 6. Write a program to implement a simple debounce function. 7. Create a function to merge two sorted arrays into a single sorted array. 8. Write a function to find the first non-repeating character in a string. 9. Write code to simulate the bind() method. 10. Create a function to implement a basic LRU (Least Recently Used) cache.
Instant Download (Ebook) Jurisprudence and Legal Theory LA3005 - Module Guide (University of London) by J. Marshall & S. Guest & A. Gearey & J. Penner & W. Morrison & A. Dolcetti & E. Melissaris PDF All Chapters