pull/433/merge
moslem safari 2 years ago committed by GitHub
commit bd8aaa9778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -450,7 +450,7 @@ console.log(firstName.length) // 8
2. *Accessing characters in a string*: We can access each character in a string using its index. In programming, counting starts from 0. The first index of the string is zero, and the last index is the length of the string minus one. 2. *Accessing characters in a string*: We can access each character in a string using its index. In programming, counting starts from 0. The first index of the string is zero, and the last index is the length of the string minus one.
![Accessing sting by index](../images/string_indexes.png) ![Accessing string by index](../images/string_indexes.png)
Let us access different characters in 'JavaScript' string. Let us access different characters in 'JavaScript' string.

Loading…
Cancel
Save