Programming · Flashcard
What is the main syntactic feature of an arrow function?
Why this is the answer
Arrow functions use => and drop the function keyword for a shorter form. JavaScript uses => not ->, arrows don't keep the function keyword, and there's no arrow keyword.
Read more in the docsMore JavaScript Fundamentals flashcards
- Which keyword declares a variable whose binding cannot be reassigned?
- Which of the following is a primitive data type in JavaScript?
- What is the difference between == and ===?
- What does a closure keep access to after its outer function has returned?
- Which runs first: Promise.resolve().then(f) or setTimeout(f, 0)?
