May 2022
Beginner
304 pages
6h 49m
English
Strings are probably the most important data structure on the Web, since web pages ultimately consist of strings of characters sent from the server to the browser, and many other kinds of programs also require string manipulation. As a result, strings make an excellent place to start our JavaScript programming journey.
Strings are made up of sequences of characters in a particular order. We’ve already seen several examples in the context of our “hello, world” programs in Chapter 1. Let’s see what happens if we type a string by itself (without console.log) into a Node session:
$ node > "hello, world!" 'hello, world!'
A sequence of characters typed literally is called a string literal, which we’ve created here ...
Read now
Unlock full access