These are some examples of previously created materials by mentors that you can use yourself, or for inspiration.
Write this code with traditional functions, no arrow functions yet!
- Try to write your own
forEach,mapandfilterwith the trainees. Shows very precisely how it works! forEach- Executes function for each item in the array, NO RETURN!map- Changes/transforms the items in the arrayfilter- Changes the number of items in the array. Let the trainees investigatefilter- Code inspiration
- filter homemade - Get help from trainees to write this
- Exercises
- Other example
See the separate Exercises document.
See the separate Code inspiration document.