FunctionAsValueWithParentheses
DRAFT

Misconception:

To use a function f as a value, e.g., storing a reference to it in a variable or passing it to a higher-order function, one needs to put parentheses after the name (thus, f()).

Incorrect

To use a function as a value, one needs to have parentheses after its name

Correct

To use a function as a value, one just needs to write its name

Language

JavaScript

Concepts

Stay up-to-date

Follow us on  twitter to hear about new misconceptions.