Skip to content

Instantly share code, notes, and snippets.

@jinnyMcKindy
Created October 27, 2020 12:44
Show Gist options
  • Save jinnyMcKindy/fe35ef1eafd05a88141d170a2054481b to your computer and use it in GitHub Desktop.
Save jinnyMcKindy/fe35ef1eafd05a88141d170a2054481b to your computer and use it in GitHub Desktop.
Frontend Interview questions
What are some ways you may improve your website's scrolling performance?
JS:
https://github.com/yangshun/front-end-interview-handbook/blob/master/questions/javascript-
questions.md
● Describe event bubbling, capturing. (-)
● Explain event delegation. (-)
● Two main paradigms: OOP & FP. What is, pluses/minuses? In two words. (-/+)
○ (He is confusing functional prog with procedural programming)
● Explain how this works in JavaScript.
○ Said content (in fact conteXt)
○ Can you give an example of one of the ways that working with this has
changed in ES6? (+)
● Can you explain what Function.call and Function.apply do? What's the notable
difference between the two? (+)
● Explain Function.prototype.bind. (+/-)
● Explain how prototypal inheritance works. How differs from classical
inheritance? When is classical inheritance an appropriate choice in JS? (used
mutation of prototype (which is bad), seems that doesn't knows that classes in
JS are sugar)
● What is a closure, and how/why would you use one? (-)
● What's a typical use case for anonymous functions?
● Explain "hoisting".
● What's the difference between an "attribute" and a "property"?
● What are the pros and cons of extending built-in JavaScript objects?
● What is the difference between == and ===? (-/+)
● Explain the same-origin policy with regards to JavaScript. (+)
● What is strict mode? What are some of the advantages/disadvantages of using it?
● Explain the difference between mutable and immutable objects. (-/+)
○ What is an example of an immutable object in JavaScript?
○ What are the pros and cons of immutability?
○ How can you achieve immutability in your own code?
● Explain the difference between synchronous and asynchronous functions.
What is async programming in general and why it's important at all in JS. (-, said about indefinite blocking cycles, didn't say about blocking network
requests for example)
● What is event loop? (-)
○ What is the difference between call stack and task queue?
● What are the differences between variables created using let, var or const?
● What are the differences between ES6 class and ES5 function constructors?
● Can you offer a use case for the new arrow => function syntax? How does this new
syntax differ from other functions?
● What is the definition of a higher-order function?
● What are the benefits of using spread syntax and how is it different from rest syntax?
● How can you share code between files?
● Why you might want to create static class members?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment