However, in the second example, the 'Fun Fact' says that the total number of characters in 'Hello World' is 11.
This leads me to wonder, do these examples count spaces in the string, or does the counting start at 0 or 1? If you follow the first example where 'W' is the 6th character, then the total number of characters in 'Hello World' is 10. If you follow the second example where the total number of characters totals 11, then it seems like it would count the space in 'Hello World'. Or....does it count the apostrophes?? I am so confused!
Example 1: Fun fact: You can also access each individual character in a string the same way you do with arrays. For instance, you can write: var hello = 'Hello World'; console.log(hello); // Output: W Example 2: Fun fact: .length is also a property for strings. For instance, you can write 'Hello World'.length, and it will output 11 (the number of characters in "Hello World").