method:hasOwnProperty( property );return type:voidcontent:ใช้กำหนด Property ให้กับ objectexample:var str = new String ( "BambooLabCode" ); str.hasOwnProperty ( "name" ) alert ( str.name );