Skip to content

Commit 3ef7825

Browse files
authored
Update readMe.md
I noticed there was a typo on variable named "lastIndex"
1 parent d293c53 commit 3ef7825

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

readMe.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ console.log(numbers.length) // => to know the size of the array, which is 6
711711
console.log(numbers) // -> [0, 3.14, 9.81, 37, 98.6, 100]
712712
console.log(numbers[0]) // -> 0
713713
console.log(numbers[5]) // -> 100
714-
let lastIdex = numbers.length - 1;
714+
let lastIndex = numbers.length - 1;
715715
console.log(numbers[lastIndex]) -> 100
716716
const webTechs = [
717717
"HTML",
@@ -726,7 +726,7 @@ console.log(webTechs) // all the array items
726726
console.log(webTechs.length) // => to know the size of the array, which is 7
727727
console.log(webTechs[0]) // -> HTML
728728
console.log(webTechs[6]) // -> MongoDB
729-
let lastIdex = webTechs.length - 1;
729+
let lastIndex = webTechs.length - 1;
730730
console.log(webTechs[lastIndex]) -> MongoDB
731731
const countries = [
732732
"Albania",
@@ -744,7 +744,7 @@ const countries = [
744744
console.log(countries) // -> all countries in array
745745
console.log(countries[0]) // -> Albania
746746
console.log(countries[10]) // -> Kenya
747-
let lastIdex = countries.length - 1;
747+
let lastIndex = countries.length - 1;
748748
console.log(countries[lastIndex]) -> // Kenya
749749

750750
const shoppingCart = [

0 commit comments

Comments
 (0)