JavaScript Tip: Creating a Function that Remembers Data

preview_player
Показать описание
If you find you are passing the some of the same information to a function and calling it multiple times, you may want to bed that data with the function using the technique discussed in this tutorial.
For more resources on JavaScript:

Interested in some of our courses:

Tutorials referred to in this video:
Рекомендации по теме
Комментарии
Автор

Here we are not dealing with "Recursive Functions", actually "the Scores" array is just passed into the both functions once, but still the new technique is much much more faster! I'm scratching my head what would be the reason of this. PLZ explain it a bit more :)

h.tehrani
Автор

Wow very interesting! It would be awesome to see a dedicated video on currying

Dylan-fehn
Автор

Is it like currying and compose functions?

holypizza
join shbcf.ru