Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
18 views

Javascript?

JavaScript course

Uploaded by

Rida Irfan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Javascript?

JavaScript course

Uploaded by

Rida Irfan
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

20 Important

JavaScript
Concepts
for Your Next
Interview
1. Closures
A closure is a function that
remembers its outer variables even
after the outer function has finished
executing.
2. Hoisting
In JavaScript, variable and function
declarations are "hoisted" to the top of their
scope.

3. Event Loop &


Callbacks
JavaScript is single-threaded, and the event
loop allows asynchronous operations using
callbacks.
4. Promises
Promises handle async operations,
with states: pending, fulfilled, and
rejected.

5. Async/Await
Async/await simplifies promise
handling.
6. Arrow Functions
Arrow functions provide a concise
syntax and don't have their own
this.

7. Destructuring
Destructuring allows you to unpack
values from arrays or properties
from objects.
8. Spread & Rest
Operators
Spread ... expands elements, and
Rest collects them into an array.

9. Prototypes
Prototypes allow objects to inherit
properties and methods.
10. This Keyword
this refers to the context in which
a function is called.

11. Classes
ES6 classes provide a cleaner syntax
for object-oriented programming.
12. Modules
Modules let you split your code
across multiple files.

13. Map and Filter


map and filter are array methods for
transforming and filtering arrays.
14. Reduce
reduce accumulates values from
an array.

15. SetTimeout &


SetInterval
setTimeout delays execution, while
setInterval repeats it.
16. Template Literals
Template literals allow multi-line strings
and interpolation.

17. Type Coercion


JavaScript can implicitly convert types,
sometimes unpredictably.

18. Truthy & Falsy Values


Values like 0, "", null, undefined, NaN
are falsy.
19. Debouncing &
Throttling
Debouncing and throttling are
techniques to control function execution
frequency, often in response to events.

Debounce (delay execution):

Throttle (limit execution):


20. Currying
Currying transforms a function with
multiple arguments into a series of
functions with a single argument.
Found this
helpful?
Follow for
more!
Sanuj Bansal

You might also like