Facebook Pixel

Do arrow functions have their own this and arguments in JavaScript?

No. Arrow functions inherit this from their lexical scope (cannot be changed by call, apply, or bind). They do not have their own arguments object; use rest parameters (...args) instead.

Verify This Answer

Cross-check this information using these trusted sources:

More FAQs in First-Class Functions Interview Questions in JavaScript

Functions are treated like any other value: assignable to variables, passable as arguments, returnable from functions, storable in data structures, and typeof is 'function'.

A function statement is hoisted with its full body (callable before the line). A function expression is assigned to a variable (variable hoisted only, function body assigned at the line).

A function that takes a function as an argument, returns a function, or both. Examples include map, filter, reduce, compose, curry, and setTimeout.

Still have questions?

Browse all our FAQs or reach out to our support team

Want to upskill yourself?

Our courses are taking a Coffee break, but your curiosity shouldn't. Stay engaged with namastedev linkedin, youtube, discord and other resources while you wait.

0
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.