Home > Articles

  • Print
  • + Share This
This chapter is from the book


  1. I've heard the term object-oriented applied to languages such as C++ and Java. If JavaScript supports objects, is it an object-oriented language?

  2. Yes, although it might not fit some people's strict definitions. JavaScript objects do not support all of the features that languages such as C++ and Java support.

  3. Having several scripts that execute at different times seems confusing. Why would I want to use event handlers?

  4. Event handlers are the ideal way (and in JavaScript, the only way) to handle gadgets within the Web page, such as buttons, check boxes, and text fields. It's actually more convenient to handle them this way. Rather than writing a script that sits and waits for a button to be pushed, you can simply create an event handler and let the browser do the waiting for you.

  • + Share This
  • 🔖 Save To Your Account