Randomly Mental ™

My Online Junk-Drawer of Blogging Miscellany ™

javascript day – 1

Posted by kristobaldude on October 11, 2012

life of an EXTRAordinary person living in this planet

object is something we create out of the class. it is already built-in.

function Object(){

var x = new Object(); //


Object o = new Object(); is like saying var r = {};// how to create an empty object.

var r = {}’;

r.name = “Rommel”;

r.id = “006”;

r.dept = “admin”;

Orthogonal – there are many ways to achieve the result.

function goo() { // function block
return “Hello”;


var s = goo();

goo = “1”; // iniba dito ang value ng goo. functions are like ordinary variables.


View original post


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: