June 2025
Beginner
817 pages
31h 30m
English
You’ve already gotten to know the strings in the data types. If you’re a web developer using JavaScript, strings are usually the most common type of data you’ll use. For this reason, I’ll devote a few sections to them here.
The internal structure of strings isn’t unlike that of arrays. The first character of a string also starts with the index 0. The string “Hello world” is internally constructed as shown in Figure 18.2.
Figure 18.2 The Internal Structure of a String
You’ll often want to check the length of an input string in an input field of a web form. For this ...
Read now
Unlock full access