๐ ๐ฎ๐๐๐ฒ๐ฟ๐ถ๐ป๐ด ๐๐ฎ๐๐ฎ๐ฆ๐ฐ๐ฟ๐ถ๐ฝ๐ ๐๐ฟ๐ฟ๐ฎ๐๐
I finished two weeks of learning the MERN stack. I studied array methods today. These tools help you manage lists of data.
Here are the methods I learned:
- .push(): adds items to the end.
- .pop(): removes the last item.
- .unshift(): adds items to the start.
- .shift(): removes the first item.
- .toString(): makes a string from a list.
- .concat(): joins lists together.
- .slice(): copies a part of the list.
- .splice(): adds or removes items at any spot.
I practiced with a list of tech companies.
- I removed the first company.
- I replaced Uber with Ola.
- I added Amazon to the end.
Tomorrow I move to functions. I will learn about parameters and return types.
Do you use .splice in your work? Do you prefer other methods?
Source: https://dev.to/ali_hamza_589ec7b3eb6688d/javascript-apnacollege-webdev-beginners-9cl