-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlecture14.html
25 lines (24 loc) · 1.4 KB
/
lecture14.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lecture 14 | Very useful array operations🔥 | Important functions covered |</title>
</head>
<body>
*****************************Tutorial Start 🔥 ********************************
<h1> Very useful array operations🔥 | Important functions covered |</h1>
<p>push() function last me array element ko add karta hai.</p>
<p>pop() function last se array element ko delete/remove karta hai.</p>
<p>shift() function remove the array elements from front/beginning of an array </p>
<p>shift() function me voo elements return hota hai output me jo starting se remove ho rha ho</p>
<p>unshift() function me element ki new wali size return hoti hai jo stating se add ho rhi hai.</p>
<p>.length -> ye property/variable hai, array yaa string property, and variable ke aage kabhi bhi parenthesis() nhi lagta hai</p>
<p>.length() -> function/method hai </p>
<p>java me string ki length nikalne ke liye humko parentheses use karna hota hai</p>
<p>javascript me array and string ke saath .length property me parentheses nhi use karte hai kabhi bhi</p>
<script src="lecture14.js"></script>
*****************************Tutorial End 🚀 ********************************
</body>
</html>