Strings

To display text or any series of letters, you use strings. A string is just a series of letters or other symbols inside of either double or single quote marks.

Strings are one of the most common data types that you'll need to work with when programming in JavaScript. After all, paths to files, URLs, form fields, and the HTML or CSS you may wish to manipulate on a page are comprised of the letters and symbils that are the stuff of strings.

Given this, it's useful to gain a larger understanding of how strings work and how we can manipulate them. JavaScript provides a number of useful methods for working with and manipulating strings.