Skip to content

drammeh/real-world-javascript-interview-questions

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

At a developer interview lately? What JS questions were you asked?

Additional contextual information may include:

  • how much time applicant was given to solve the problem
  • whether or not applicant was allowed to use additional resources to solve the problem (i.e. Google)
  • job title
  • type of interview

Real-world JavaScript interview questions.


  • Write a function that takes a DOM element and smoothly animates it from its current position to distance pixels to the right over duration milliseconds. Implement the following function, animate(el, milliseconds, distance)

    • Asked as part of a phone screen interview for Facebook position
    • Implement this function without using jQuery or any other third-party libraries

Discovered 18 December 2019 via Dev.to

  • Please output the optimal HTML, CSS and JS to render these boxes where clicking on a box changes the color of the box to red.

Submitted 14 November 2019 via Twitter by Samet M.

Submitted 12 November 2019 via YouTube by RunOS.

  • Build a todo list with no JavaScript framework. (ex. solution by @xtrp)

    • Applicant had 1 hour to solve
    • Could access the web for help

Submitted 12 November 2019 via GitHub by miladganjali.

  • Explain object-oriented programming.

Submitted 12 November 2019 via GitHub by IlyasEzz.

  • How to add timestamps in all the console.logs without modifying console logs manually.

Submitted 9 November 2019 via GitHub by tnvr-bhatia

    • 48-hour time limit
    • Applicant asked for additional day to complete challenge and was granted extension

Submitted 8 November 2019 via RTC email by Edward W.

  • Build a traffic light (semaphore). A black rectangle with 3 circles (lights: red, yellow, green) on it. There can only be one light on at a time. When I click on it, one light turns ON and the others turn OFF. (ex. solution by @xtrp)

    • 20 minute time limit
    • Applicants can use whatever dependencies they want
    • Could access the web for help

Submitted 8 November 2019 via RTC Discord by Jordan W.

  • How does garbage collection work in JavaScript?

Submitted 8 November 2019 via RTC Twitter by Half Maltese Falcon

  • Explain event bubbling.

Submitted 8 November 2019 via RTC Twitter by Chris M.

Submitted 7 November 2019 via RTC Twitter by Christopher D.

Submitted 7 November 2019 via RTC Twitter by Leondri S.

About

JavaScript questions that were asked at real job interviews.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 37.0%
  • CSS 31.9%
  • HTML 31.1%