Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajzawawi/js-interview-prep
A collection of JS interview questions updated every day
https://github.com/ajzawawi/js-interview-prep
Last synced: 3 months ago
JSON representation
A collection of JS interview questions updated every day
- Host: GitHub
- URL: https://github.com/ajzawawi/js-interview-prep
- Owner: ajzawawi
- Created: 2016-09-28T16:51:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-09T00:41:55.000Z (over 6 years ago)
- Last Synced: 2024-06-16T02:36:16.483Z (5 months ago)
- Size: 45.9 KB
- Stars: 258
- Watchers: 17
- Forks: 58
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
- awesome-random-stuff - JavaScript Job Interview Questions - questions asked in interviews (Uncategorized / Uncategorized)
README
# JavaScript Job Interview Questions
This repo contains a number of JavaScript interview questions that can be used for interview prep or when vetting potential candidates.
Some suggested answers along with relevant resources are posted in the answers folder. You can also submit answers to questions as a contributor.
## Table of Contents
1. [General Questions](#general-questions)
1. [Architecture & Patterns](#architecture--patterns)
1. [Browser & DOM](#browser--dom)
1. [ES6](#es6)
1. [Functional & Asynchronous Programming](#functional--asynchronous-programming)
1. [Tricky Questions](#tricky-questions)
1. [Best Practices & Optimization](#best-practices--optimization)
1. [Algorithms & Data Structures](#algorithms--data-structures)
1. [CSS & UI](#css--ui)
1. [React & Redux](#react--redux)
1. [Angular](#angular)
1. [Angular2](#angular2)## Getting Involved
1. [Contributors](#contributors)
### General Questions
* [What is a closure?](answers/general/what-is-a-closure.md)
* [Is JavaScript block-scoped or function scoped?](answers/general/function-or-block-scope.md)
* [Is JavaScript a compiled or interpreted language?](answers/general/function-or-block-scope.md)
* [What is function hoisting? Provide some examples where it can be good or bad.](answers/general/function-hoisting.md)
* [What is type coercion and when is it useful or dangerous.](answers/general/what-is-type-coercion.md)
* [What is the difference between == and ===.](answers/general/double-equal-vs-triple-equal.md)
* [What is the difference between call, apply, and bind?](answers/general/call-apply-bind.md)
* [What is the difference between encryption and hashing?](answers/general/encryption-vs-hashing.md)
* [Is JavaScript static or dnyamic? Is it strongly or weakly type?](answers/general/javascript-type.md)
* [What is the difference between progressive enhancement versus graceful degradation?](answers/general/progressive-enhancement-graceful-degradation.md)
* [What is object serialization and deserialization. Give examples.]()
* [Does JavaScript use mixins?]()
* [What is tree shaking in JavaScript?]()
* [What is reflection? Can you give examples of reflect methods you've used in the past?]()
* [What is the V8 engine? Is the V8 engine written in JavaScript?]()
* [CommonJS vs AMD vs ES2015, what are the differences and which one do you prefer and why?]()### Architecture & Patterns
* [What is fault tolerance? How can you improve your app's fault tolerance?]()### Browser & DOM
* [What are the differences between window and document in the browser?]()
* [What is a host object? How is it different from a native object?]()
* [What is the difference between event bubbling and event capturing?]()
* [What is browser detection? How is it different from feature detection? Give examples of when you would use them.]()
* [What is Shadow DOM?]()
* [How is the DOM different from BOM in JavaScript?]()### ES6
* [What is the Temporal Dead Zone?](answers/es6/temporal-dead-zone.md)
* [Arrow functions are cool in ES6. When should you NOT use arrow functions. Name three or more cases.](answers/es6/when-not-to-use-arrow-functions.md)
* [What is a trampolined function? What is it used for? Will we still need this technique with ES6?]()
* [What is a symbol in JavaScript? Is it a primitive? What's a typical use case for a symbol in ES6?]()
* [What is the difference between Map and WeakMap in ES6?]()### Functional & Asynchronous Programming
* [What is a callback?](answers/functional-asynch/what-is-a-callback.md)
* [What is a generator?]()
* [What is a thunk in Javascript?](answers/functional-asynch/what-is-a-thunk.md)
* [What is the event loop in Javascript? How does this differ/compare to some other languages?](answers/functional-asynch/event-loop.md)
* [What is a race condition?]()
* [Are there any differences between a thunk and a promise?]()### Tricky Questions
* [What is the value of `console.log(+'meow')`? Explain your answer.](answers/tricky/unary-operator.md)
* [What does `3 instanceof Number` evaluate to? True or false? Explain your answer.](answers/tricky/primitive-values.md)
* [Why is my import statement not working in the browser?](answers/tricky/import-statements-browser.md)
* [What is the difference between an array literal and condensed arrays?](answers/tricky/array-literal-vs-condensed.md)
* [What does it mean to "hydrate" an object in JavaScript?]()### Best Practices & Optimization
* [Why is eval() considered evil and dangerous?](answers/bestpractices/eval-dangerous.md)
* [What is meant by 'repaint and reflow'? How does it affect your application?](answers/bestpractices/repaint-reflow.md)
* [What is currying?](answers/bestpractices/what-is-currying.md)
* [In TDD what is the difference between a spy, mock, and stub?](answers/bestpractices/tdd-spy-mock-stub.md)
* [What's the difference between (visibility: hidden) and (display: none)? Which is better for your website's performance?]()
* [What are memory leaks? What are the most common leaks in your JS code?]()
* [What are the differences between graceful degradation and progressive enhancement? Can you give examples?]()### Algorithms & Data Structures
**Graphs, Trees and Binary Search Trees**
* [How can you check if a tree is a binary tree?]()
* [What is the difference between traversing a tree breadth first and depth first?]()### CSS & UI
* [Why do we use z-index in CSS?]()### React & Redux
* [What are React mixins? Give an example.]()
* [What is a pub/sub pattern? Does Redux follow this pattern?]()#Contributors
This repo is currently maintained by [AJ Zawawi](https://github.com/ajzawawi)
Contributors: [Daniel Chang](https://github.com/dan-h-ch)