diff --git a/readMe.md b/readMe.md index ab8a68b..d6cd021 100644 --- a/readMe.md +++ b/readMe.md @@ -1287,7 +1287,7 @@ console.log(country.startsWith('fin')) // false console.log(country.startsWith('land')) // false ``` -17. *endsWith*: it takes a substring as an argument and it checks if the string starts with that specified substring. It returns a boolean(true or false). +17. *endsWith*: it takes a substring as an argument and it checks if the string ends with that specified substring. It returns a boolean(true or false). ```js string.endsWith(substring) @@ -2190,7 +2190,7 @@ console.log(numbers); // -> [2,3,4,5] ```js const numbers = [1, 2, 3, 4, 5]; -numbers.unshift(0); // -> remove one item from the beginning +numbers.unshift(0); // -> adds one item to the beginning console.log(numbers); // -> [0,1,2,3,4,5] ``` @@ -2590,7 +2590,7 @@ Getting values from an object: console.log(person.lastName); console.log(person.getFullName()); // value can be accessed - console.log(person['age'); + console.log(person['age']); console.log(person['location']); ```