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 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.