Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
My object all sublime I shall achieve in time.
—W. S. Gilbert
Is it a world to hide virtues in?
—William Shakespeare
Objectives
In this chapter you’ll:
• Learn object-based programming terminology and concepts.
• Learn the concepts of encapsulation and data hiding.
• Learn the value of object orientation.
• Use the methods of the JavaScript objects Math, String, Date, Boolean and Number.
• Use HTML5 web storage to create a web application that stores user data locally.
• Represent objects simply using JSON.
11.3.1 Fundamentals of Characters and Strings
11.3.2 Methods of the String Object