<script type="text/javascript">
/**
* we are always using obj,such as array and date.
* this two guys are system obj.
*/var arr = newArray();
var date = newDate();
//propertise and methods
arr.length;
arr.push();
arr.sort();
date.getDate();
</script>
<script type="text/javascript">
var obj = {}
// this sentence is same as the above.var obj = newObject();//空对象
obj.name='xiaoming';
obj.showName=function(){//the key of oop is to figure out "this" is what.
alert(this.name);
}
obj.showName();
</script>