Concept
Functions
Reusable blocks of code; in JavaScript they are values that can be passed around and returned.
Functions
What to learn after Functions
- Arrow functionsThe short function syntax that has no own this, arguments or prototype.
- CallbacksFunctions passed to other functions to be called later, the original way to handle async work.
- ClosuresA function that keeps access to the variables of the scope it was created in, after that scope has finished.
- Generators and iteratorsFunctions that can pause and resume, producing a sequence of values on demand.
Practise Functions
- Intermediate JavaScript Interview Questions3 questions on Functions
- Top 20 JavaScript interview questions with answers: core JS, Node.js and React1 question on Functions
- JavaScript Interview Questions for Freshers1 question on Functions