Category: JAVASCRIPT

oojs: Using this Value 0

oojs: Using this Value

Using this value In the previous article we saw how to access methods and properties of an object. When you’re inside a method though, there is another way to access the object this method...

oojs : 2. Accessing Object’s Properties 0

oojs : 2. Accessing Object’s Properties

Accessing Object’s Properties There are two ways to access a property of an object: Using square bracket notation, for example person[‘first_name’] Using the dot notation, for example person.first_name Let’s take this object student: var...

Object oriented javascript | oojs in easy steps 0

Object oriented javascript | oojs in easy steps

Introduction: Arrays v/s objects Before we start of with Objects in Javascript, I think most of us are familar with Arrays Lets consider an array browser browser=[‘firefox’,’chrome’,’safari’,’IE’] each value has an index that is...