method:sub ();return type:stringcontent:ใช้แสดงผลข้อความแบบตัวห้อยexample:var str = new String ( "2" ); alert ( "log" + str.sub() + "10" );