Update 02_day_data_types.md

pull/270/head
Akaaljot Singh 4 years ago committed by GitHub
parent 97f84bf65f
commit 6c59c738a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -81,7 +81,7 @@ let word = 'JavaScript'
If we try to modify the string stored in variable *word*, JavaScript should raise an error. Any data type under a single quote, double quote, or backtick quote is a string data type.
```js
word[0] = 'Y'
word[0] = 'J'
```
This expression does not change the string stored in the variable *word*. So, we can say that strings are not modifiable or in other words immutable.

Loading…
Cancel
Save