A Trip to Darjeeling with Friends: How JavaScript Helped Us
1. push() - Assembling the Group:
We started with an empty array to keep track of everyone who was going. We used the push() method to add each friend's name to the list.
let darjeelingTrip = [];
darjeelingTrip.push("Koushik");
darjeelingTrip.push("...
koushik-chowdhury.hashnode.dev3 min read