3 ms·
Try writing some code using loops, if statements etc to - create a new array that is the reverse of the old array - reverse an array by modifying it in place
by frogulis 4y ago
Try writing some code using loops, if statements etc to
- create a new array that is the reverse of the old array
- reverse an array by modifying it in place
- see what happens if you use the `delete` keyword on an array element
- see what happens if you index or `.find` an element that doesn't exist
- try out the built-in functions `map`, `filter`, `reduce`. See if you can get an intuition for what they do and how they're generally useful
Finally, think about why you're learning JS in the first place and start a project in that space. Even if you don't know everything you need, it's a fulfilling way to direct your future learning
Have fun!
- shivajikobardan 4y agoit's for web development.