actionsinjscodealong
v1.0.0
Published
Action in JS
Downloads
1
Readme
Action in JS
Why use functions?
- makes our code reusable
- allows us to compartmentalise our code
- allows us to work asynchronously (meaning we have more than one function operating at the same time)
what are the three sources of functions?
- create our functions ourselves (declare them)
- inbuilt methods that we can access on any js file (forEach, sum, reduce, filter)
- imported functions (such as jest from npm)
different ways to write a function
- function keyword use
- es6 arrow functions
recursion and debugging
- Recursion: when the function calls itself
publishing an npm package (Jaden Case Strings)
We now know how to use array methods but what about number and string methods?