As with ABAP, JavaScript allows you to create objects. However, the concepts pertaining to object creation in the two languages are not the same. This chapter covers object creation, instantiation, and inheritance in JS. After starting with an overview of object-oriented programming (OOP) in general, the rest of the chapter shows how OOP is implemented in JS, along with relevant syntax. It introduces the this operator in detail, then covers the various ways of creating objects, followed by the instantiation steps using the new keyword. Once you have a basic understanding ...
© Rehan Zaidi 2017
Rehan Zaidi, JavaScript Essentials for SAP ABAP Developers, 10.1007/978-1-4842-2220-1_8
8. Object-Oriented Programming in JavaScript
Rehan Zaidi1
(1)Karachi, Pakistan
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.