From 5a65523948cecb7d8e162c32f5491620032523a2 Mon Sep 17 00:00:00 2001 From: Oluwafikayo Omoniyi Ajayi Date: Mon, 21 Jul 2025 13:59:04 +0100 Subject: [PATCH 1/3] String endsWith should be ends not starts with String endsWith should be ends not starts with --- readMe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readMe.md b/readMe.md index ab8a68b..e0d4830 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) From 5ede062e3489dc529a17e9ebf47798e9313a24ad Mon Sep 17 00:00:00 2001 From: Oluwafikayo Omoniyi Ajayi Date: Mon, 21 Jul 2025 14:44:22 +0100 Subject: [PATCH 2/3] updated the unshift array comment description --- readMe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readMe.md b/readMe.md index e0d4830..80d0408 100644 --- a/readMe.md +++ b/readMe.md @@ -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] ``` From 1d13fb47209a1eb308bdfb65a621e0da99afb8fd Mon Sep 17 00:00:00 2001 From: Oluwafikayo Omoniyi Ajayi Date: Mon, 21 Jul 2025 17:42:20 +0100 Subject: [PATCH 3/3] Update the object key access missing parenthesis --- readMe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readMe.md b/readMe.md index 80d0408..d6cd021 100644 --- a/readMe.md +++ b/readMe.md @@ -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']); ```