| prototype | ใช้สร้าง Property หรือ Method ใหม่ให้กับ object |
|---|
property:prototype;
return type:5
content:ใช้สร้าง Property หรือ Method ใหม่ให้กับ object
example:var str = new String ( "BambooLabCode" ); str.propotype.getName = function () { return "BambooLabcode"; } alert ( str.getName() );