Chars and Strings
Learn about and practice with characters and strings.
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:
Access this course and 1400+ top-rated courses and projects.