Saturday, 7 May 2011

Data Types & Operators

Today we are discussing about the  data types and operators
Everything that javascript manipulates, it treats as and object   a window or a button.
An object has properties. a window has size,position,status,etc
An object can be manipulated  with  methods that are associated with that  object a resize a window with resize to (150,200)

Types of Objects

JavaScripts objectes
Objects that are part of javascript
examples.window document

Browser objects
objects that contain info not about the contentsof the display  but the browseritself
Examples history, navigator.
User defined object

Object-Based, Not Object-Oriented

JavaScript is not a true object-oriented language like  C++or Java
Itis so because it lacks two k ey features
A formal inheritance mechanism Strong typing
The Concept of objects and associated properties and  methods is a very powerful idea, and we will be talking about it a lot during this course.
However  today our focus will be on someof the nitty gritty details of javascript.

No comments:

Post a Comment