Chars and Strings
Learn about and practice with characters and strings.
We'll cover the following
In this chapter, we’ll be looking at how letters and words are represented and used in programming languages. We’ll also look at how JavaScript represents them using strings.
Introduction to chars and strings
As we saw in the previous chapter, most programming languages have primitive data types of char (a single character) and strings (a collection of characters). In fact, we can almost think of a string as a collection of characters joined together by a piece of string:
Get hands-on with 1400+ tech skills courses.