Skip to content

Instantly share code, notes, and snippets.

@IgnusG
Last active December 3, 2020 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgnusG/dfb2468e215696e7535dc34bc627071b to your computer and use it in GitHub Desktop.
Save IgnusG/dfb2468e215696e7535dc34bc627071b to your computer and use it in GitHub Desktop.

What is prototypical inheritance and how useful is it?

How can JavaScript be used to improve accessibility on the web?

What is event bubbling and how is it different to event capturing?

Bubbling is one of the 2 phases in event propagation. The other phase is called the capturing phase. The 2 phases are always run in the order: capturing then bubbling.

Events bubble from the target (source element) and move up the DOM tree to the root.
In the capturing phase the events move down the DOM tree towards the target.

Each time the event "visits" an element it's respective event handlers are called.
Handlers are by default registered to the bubbling phase, but can opt-in to the capturing phase.

How does event delegation improve code on sites with lots of interactive elements?

What are closures and how can they be useful in organizing code?

What does 'use strict' mean at the top of a block of code?

What does the term 'hoisting' mean in reference to JavaScript?

What is the difference between an arrow function and a regular function?

Where should you use the 'let' and 'const' keywords instead of 'var'?

What is functional programming and how is it different?

How can you use JS to improve the performance of the website?

How can you future-proof your JavaScript code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment