From 1f919de3be7bfad3e56ebf90e0b1126b25cf3d25 Mon Sep 17 00:00:00 2001 From: tigerjoy <36330852+tigerjoy@users.noreply.github.com> Date: Mon, 9 May 2022 19:58:55 +0530 Subject: [PATCH] Update 02_day_data_types.md Fixed a typo in length method under String Methods. Chnaged "characters in a string included empty space" -> "characters in a string *including* empty *spaces*" --- 02_Day_Data_types/02_day_data_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/02_Day_Data_types/02_day_data_types.md b/02_Day_Data_types/02_day_data_types.md index e27d43d..6a97c75 100644 --- a/02_Day_Data_types/02_day_data_types.md +++ b/02_Day_Data_types/02_day_data_types.md @@ -437,7 +437,7 @@ console.log(`${a} is greater than ${b}: ${a > b}`) Everything in JavaScript is an object. A string is a primitive data type that means we can not modify it once it is created. The string object has many string methods. There are different string methods that can help us to work with strings. -1. *length*: The string *length* method returns the number of characters in a string included empty space. +1. *length*: The string *length* method returns the number of characters in a string including empty spaces. **Example:**