IntermediateFree courseJavaScript

JavaScript: 20 Interview Programs with Solutions

Twenty classic JavaScript interview problems in four short lessons. Each has the question, examples, the approach, a tested solution with edge cases, its time and space complexity, and a likely follow-up question.

📘 4 lessons⏱ About 2 h 18 min🌐 English🎓 Self-paced
JavaScript: 20 Interview Programs with Solutions

What you'll learn

  • Solve 20 of the most common JavaScript interview problems, from reversing a string to Kadane's algorithm
  • Explain your approach, then code it cleanly, handling empty and tricky inputs
  • State the time and space complexity of each solution
  • Use Map, Set, reduce, destructuring and other modern JavaScript the way interviewers expect
  • Prepare for the follow-up questions interviewers ask

Course syllabus

Before you start

  • JavaScript Basics and the JavaScript Functions and Methods course (or equivalent): arrays, objects, functions, loops, Map and Set
  • A browser console or Node.js