๐ ๐ฎ๐๐๐ฒ๐ฟ๐ถ๐ป๐ด ๐๐ฎ๐๐ฎ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐ ๐๐ฟ๐ฟ๐ฎ๐ ๐ ๐ฒ๐๐ต๐ผ๐ฑ๐
I finished two weeks of MERN stack study. I learned how to change arrays today.
Here are the methods I used:
- push: adds items to the end.
- pop: removes the last item.
- unshift: adds items to the start.
- shift: removes the first item.
- toString: changes array to string.
- concat: joins two arrays.
- slice: takes a piece of an array.
- splice: adds, removes, or replaces items.
I practiced with a list of companies. I removed the first company. I replaced Uber with Ola. I added Amazon to the end.
Tomorrow I start functions. I will learn parameters and return types.
Do you use splice in your professional code?
Source: https://dev.to/ali_hamza_589ec7b3eb6688d/javascript-apnacollege-webdev-beginners-9cl