|
@@ -10,6 +10,18 @@ const notes = ['Note 1', 'Note 2', 'Note 3']
|
|
|
|
|
|
|
|
notes[2] = 'This is the new note 3'
|
|
notes[2] = 'This is the new note 3'
|
|
|
|
|
|
|
|
|
|
+notes.forEach(function (item, index) {
|
|
|
|
|
+ console.log(index)
|
|
|
|
|
+ console.log(item)
|
|
|
|
|
+})
|
|
|
|
|
+
|
|
|
console.log(notes.length)
|
|
console.log(notes.length)
|
|
|
console.log(notes)
|
|
console.log(notes)
|
|
|
|
|
|
|
|
|
|
+for (let count = 0; count <= 2; count++) {
|
|
|
|
|
+ console.log(count)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+for (let count = 0; count < notes.length; count++) {
|
|
|
|
|
+ console.log(notes[count])
|
|
|
|
|
+}
|