We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 387655c commit 5a7e50aCopy full SHA for 5a7e50a
Array Methods/push.js
@@ -0,0 +1,11 @@
1
+// Lets create a persons array with four elements,
2
+let people = ["Gustavo", "Lucio", "Julio", "Luan"];
3
+
4
+// removes the last element from the people array
5
+let length = people.push("Louise");
6
7
+console.log(`Output: ${people}`)
8
+// Output: Gustavo,Lucio,Julio,Luan,Louise
9
10
+console.log(`Output: ${length}`)
11
+// Output: 5
0 commit comments