push() – adding something at the end If you want to add a new item to the end of an array, you use push(). let fruits = ["apple", "banana"]; fruits.push("mango"); Before: ["apple", "banana"] After:
arraysmethodsyoumustknow.hashnode.dev3 min readNo responses yet.