Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

11. JavaScript: Objects

11. JavaScript: Objects

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.

Outline

11.1 Introduction

11.2 Math Object

11.3 String Object

11.3.1 Fundamentals of Characters and Strings

11.3.2 Methods of the String Object

11.3.3 Character-Processing Methods

11.3.4 Searching Methods

11.3.5 Splitting Strings and Obtaining Substrings


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint