DEV Community

Sandip Shinde
Sandip Shinde

Posted on

JavaScript advanced feature with resource links(mostly useful for UI Interview)

Hello Everyone!

Here I am summarizing advanced/interesting(mostly asked during interview) features with easy to understand online resources.

1. Closure:

A closure is the combination of a function and the lexical environment within which that function was declared.
a. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Closures
b. https://javascript.info/closure

2. Promise:

A Promise is a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers with an asynchronous action's eventual success value or failure reason. This lets asynchronous methods return values like synchronous methods: instead of immediately returning the final value, the asynchronous method returns a promise to supply the value at some point in the future.

a. https://developers.google.com/web/fundamentals/primers/promises
b. https://davidwalsh.name/promises

Top comments (0)