• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Summary

Objects in JavaScript are core, and understanding the document object model of JavaScript in relationship to HTML is essential to working effectively with the many objects that can be found on a web page. The idea behind object-oriented programming originally was to harness huge multiprogrammer projects because thousands of lines of code had to be coordinated. With the typical kind of projects that most designers will confront, the need for object-oriented programming is not to harness a giant project because most JavaScript is relegated to working with limited objectives in single pages. However, the extent to which you begin taking even baby steps in the direction of object-oriented programming, you will better understand what is occurring on your web page and how to make it do what you want.

A web page designer should be able to imagine the results of a dynamic web page and then, using JavaScript, make that web page come alive. By understanding OOP and even the concept of objects, properties, and methods in JavaScript, you have taken a major stride in that direction. Do not view objects and OOP as a burden, but rather as an opportunity to help you better realize what lies in your imagination. By the same token, do not treat OOP as an impediment to creativity. On several occasions, you just will not be able to figure out how to solve a problem using OOP, but the solution can be found using variables and statements that do not include objects linked to properties and methods. The OOP police won’t come and get you! Take little steps in OOP, and eventually you will be able to harness its full potential.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint