Day 10 of my #100DaysOfCode challenge! Today, I engaged myself learning an awesome array attributes: .shift()
using .shift(), you can easily remove the first element from the array and store it in a variable for further use.
#javascript#ArrayMethod
A map is like a magic wand ✨ for arrays, allowing you to transform each element with a custom function.
Check out our latest #TechReel for a deep dive into the powerful #ArrayMethod - Map!🔥
#Workfall#JavaScript
Day 11 of my #100DaysOfCode challenge!
Today, I engaged myself learning an awesome array attributes: .unshift()
using the .unshift() function, you can easily add new elements to the beginning of an array. #javascript#ArrayMethod