From 00536c900ef98eb70acb1ba672d1c31a1d9607af Mon Sep 17 00:00:00 2001 From: Chety Date: Wed, 13 May 2020 15:54:40 +0300 Subject: [PATCH] Update 02_day_data_types.md --- 02_Day/02_day_data_types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02_Day/02_day_data_types.md b/02_Day/02_day_data_types.md index bdba3801..9dbf646e 100644 --- a/02_Day/02_day_data_types.md +++ b/02_Day/02_day_data_types.md @@ -610,7 +610,7 @@ string.charCodeAt(index) ```js let string = '30 Days Of JavaScript' -console.log(string.charCodeAt(3)) // D ASCII number is 51 +console.log(string.charCodeAt(3)) // D ASCII number is 68 let lastIndex = string.length - 1 console.log(string.charCodeAt(lastIndex)) // t ASCII is 116 @@ -685,7 +685,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)