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*"
pull/336/head
tigerjoy 3 years ago committed by GitHub
parent 8b4f5a7e8c
commit 1f919de3be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:**

Loading…
Cancel
Save