© Rehan Zaidi 2017

Rehan Zaidi, JavaScript Essentials for SAP ABAP Developers, 10.1007/978-1-4842-2220-1_9

9. Objects

Rehan Zaidi

(1)Karachi, Pakistan

In JavaScript, an object is an unordered list of properties. A property is composed of a name and a value and can also be a function. In this case, the function is called a method. This chapter covers some of the standard objects you need to be familiar with when coding with JavaScript. It also presents examples of their properties and the methods you are most likely to use with them. The chapter also covers arrays, Boolean objects, string objects, and date objects.

Objects Revisited

Listing 9-1 presents a simple example of an object.

Listing 9-1. Object Example
<html>   <body>      <script>          var ...

Get JavaScript Essentials for SAP ABAP Developers: A Guide to Mobile and Desktop Application Development 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.