We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a655264 commit ddfce19Copy full SHA for ddfce19
02-chapter-Array/readme.md
@@ -44,8 +44,8 @@ There are several ways to add a new element to the array for example:
44
grades.push(element);
45
grades[grades.length + 1] = grade;
46
47
-// use of shift() method will insert a new element at the front of the array.
48
-grades.shift(grade);
+// use of unshift() method will insert a new element at the front of the array.
+grades.unshift(grade);
49
50
//use of the splice() method will insert a new element at the position indicated.
51
grades.splice(position, 0, grade);
0 commit comments