#14 🛑 Very useful array operations | Important functions - adarshtiwari1998/JavaScript-Crash-Course-Project-v1 GitHub Wiki

*****************************Tutorial Start đŸ”Ĩ ********************************

Very useful array operation and functions

push() function last me array element ko add karta hai.

pop() function last se array element ko delete/remove karta hai.

shift() function remove the array elements from front/beginning of an array.

shift() function me voo elements return hota hai output me jo starting se remove ho rha ho.

unshift() function me element ki new wali size return hoti hai jo stating se add ho rhi hai.

.length -> ye property/variable hai, array yaa string property, and variable ke aage kabhi bhi parenthesis() nhi lagta hai.

.length() -> function/method hai.

java me string ki length nikalne ke liye humko parentheses use karna hota hai.

javascript me array and string ke saath .length property me parentheses nhi use karte hai kabhi bhi.

*****************************Tutorial End 🚀 ********************************