Chapter 13
Handling Strings
Key Skills & Concepts
    Using the Properties of the String Object
    Using the Methods of the String Object
    Using Cookies
    Using Regular Expressions
image
To work with strings in JavaScript, you need to learn about the various methods that handle them. The methods come from the JavaScript String object.
This chapter first explains what the String object is and how to create strings that use its properties and methods. Then, the String object’s properties and methods are discussed in more detail so you can see how they work. Finally, you’ll code a script that uses some of the properties and methods you’ve learned. ...

Get JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.