Hour 7. Object Oriented Programming

What You’ll Learn in This Hour

• What Object Oriented Programming is

• Two ways to create objects

• Instantiating an object

• Extending and inheriting objects using prototype

• Accessing object methods and properties

• Using feature detection

As your programs become more complex, you need to use coding techniques that help you to maintain control and ensure that your code remains efficient, readable, and maintainable. In this hour you learn the basics of Object Oriented Programming, an important technique for writing clear and reliable code that you can reuse over and over.

What Is Object Oriented Programming (OOP)?

The code examples to date have been so-called procedural programming. Procedural programming ...

Get Sams Teach Yourself JavaScript™ in 24 Hours, Fifth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.