whatisgithub

What is interview-questions-in-javascript?

kennymkchan/interview-questions-in-javascript — explained in plain English

Analysis updated 2026-05-18

3,626Audience · developerComplexity · 1/5Setup · easy

In one sentence

A collection of common JavaScript coding interview questions, each solved with commented ES5 and ES6 code and a live Codepen link.

Mindmap

mindmap
  root((interview-qs))
    What it does
      Interview question bank
      Worked JavaScript solutions
      ES5 and ES6 versions
    Tech stack
      JavaScript
    Topics
      Arrays
      Strings
      Stacks and queues
      Recursion
      Numbers
    Use cases
      Interview prep
      Codepen practice

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Study worked solutions to common array, string, and recursion interview questions in JavaScript.

USE CASE 2

Practice a coding problem by running the linked Codepen example directly in a browser.

USE CASE 3

Compare how the same algorithm is written in older ES5 syntax versus modern ES6 syntax.

What is it built with?

JavaScript

How does it compare?

kennymkchan/interview-questions-in-javascriptfatfreecrm/fat_free_crmlandgrey/pydictor
Stars3,6263,6263,626
LanguageRubyPython
Setup difficultyeasymoderateeasy
Complexity1/53/52/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

No installation needed, solutions run directly via the linked Codepen examples.

No clear license information stated in the README.

So what is it?

This repository is a collection of classic technical interview questions, each one answered with working JavaScript code. The author describes it as a mostly reasonable collection of software development interview questions solved in JavaScript. It covers the kinds of algorithmic problems that software companies commonly ask during job interviews: manipulating arrays, working with strings, using stacks and queues, writing recursive functions, and handling number problems. There is also a section specific to JavaScript language behavior, and the table of contents notes more sections are planned. Each problem is stated plainly in English, followed by a complete code solution written in both older-style JavaScript (ES5) and the more modern syntax (ES6) where both are relevant. The code includes comments explaining the logic step by step, and most entries link to a live runnable version on Codepen so you can try them directly in a browser without installing anything. Examples of problems included: finding the three integers in an array whose product is largest, finding a missing number in a sequence of consecutive integers using a sum-based trick rather than brute force, removing duplicate values from a list, and reversing a string. The difficulty level matches what a developer would encounter at a standard software engineering interview, not highly specialized competitive programming. This is a study resource, not a library or a tool you install and run. The intended audience is someone preparing for technical interviews who wants to see how common problems are approached in JavaScript, with readable explanations and working code alongside each solution rather than just an answer key.

Copy-paste prompts

Prompt 1
Walk me through the largest-product-of-three-integers solution in this repo and explain the logic.
Prompt 2
Show me the ES6 version of the missing-number algorithm from this repo and explain the math trick it uses.
Prompt 3
Give me a similar array interview question to the ones in this repo, with a JavaScript solution.
Prompt 4
Explain the difference between the ES5 and ES6 solutions for reversing a string in this repo.

Frequently asked questions

What is interview-questions-in-javascript?

A collection of common JavaScript coding interview questions, each solved with commented ES5 and ES6 code and a live Codepen link.

What license does interview-questions-in-javascript use?

No clear license information stated in the README.

How hard is interview-questions-in-javascript to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is interview-questions-in-javascript for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.