Today I Learned - Rocky Kev

Tagged “functions”

  1. TIL Cleaner Functions

    tl;dr - Limit the number of arguments, Avoid executing multiple actions in a function, Avoid mutation, Avoiding non-negatives, Return Early

  2. TIL Prototypical Inheritance vs return functions

    When to use proto versus return functions?

  3. TIL how to pass unlimited arguments to a function

    The rest parameter syntax allows a function to accept an indefinite number of arguments as an array, providing a way to represent variadic functions in JavaScript.

See all tags.