Array Methods You Must Know
push() – adding something at the end
If you want to add a new item to the end of an array, you use push().
Array Methods You Must Knowlet fruits = ["apple", "banana"];
fruits.push("mango");
Before:
[
arraymethodsyoumustkno.hashnode.dev8 min read