28d ago (edited) in Resources
array methods practice - map, filter, reduce, forEach
this is a simple exercise I tried during the weekend to practice some data structures.
it is based on a prompt to chatGPT to come up with an array of objects and some objectives based on what I wanted to practice.
I will add more stuff to it as I have time
feel free to suggest some other practice you tried to polish these or other array methods.
Edit: also another thing I discovered was console.time to track your code's execution time. How it works:
Before code - function declaration write
console.time("execution time") - can be anything between the ""
After function was invoked type
console.timeEnd(" execution time") - it has to be the same message.
9
0 comments
Mioara Cenusa
7
array methods practice - map, filter, reduce, forEach
Developer Pro
skool.com/developerpro
Learn how to code. Make money. Have fun. Enjoy life.
Leaderboard (30-day)
powered by