Elegant Developer

javaScript - 예약어 본문

FrontEnd/javaScript

javaScript - 예약어

혀니D 2017. 8. 9. 22:03

javaScript - 예약어



1. 자바스크립트 예약어

javaScript에서는 변수, 레이블, 또는 함수 이름으로 예약어를 사용할 수 없다.

기본 예약어

 

  abstract, arguments, boolean, break, byte, casr, catch, char, class, const, continue, debugger, default, delete, do,  double, else, enum, evel, export, extends, false, final, finally, float, import, inm instanceof, int, interface, let, long,  native, new, null, package, private, protected, public, return, short, static, super, synchronized, this, throw, throws,  transient, true, try, typeof, var, void, volatile, while, with, yield




2. 자바스크립트 객체, 속성, 방법

javaScript 내장 객체, 속성 및 메서드의 이름을 사용하면 안된다.


체,

속성,

방법


  Array, Date, eval, function, hasOwnProperty, Infinity, is Finite, isNaN, isPrototypeOf, length, Math, NaN, name,  Number, Object, prototype, String, toString, undefined, valueOf




3. 자바 예약어

javaScript 식별자와 같은 일부 JAVA 객체 및 속성을 사용하면 안된다.


JAVA


  getClass, java, JavaArray, javaClass, JavaObject, JavaPackage




4. 윈도우 단어

javaScript는 HTML 태그를 사용할 수 있다.

HTML 및 Windows 개체 및 속성의 이름을 사용하면 안된다.


Window

 

 alert, all, anchor, anchors, area, assign, blur, button, checkbox, clearInterval, clearTimeout, clientInformation, close,  closed, confirm, constructor, crypto, decodeURL, decodeURIComponent, defaultStatus, document, element,  elements, embed, embeds, encodeURL, encodeURLComponent, escape, event, fileUpload, focus, form, forms, frame,  innerHeight, innerWidth, layer, layers, link, location, mimetypes, nacigate, navigator, frames, frameRate, hidden,  history, image, images, offscreenBuffering, open, opener, option, outerHeight, outerWidth, packages, pageXOffset,  pageYOffset, parent, parseFloat, parseInt, password, pkcs11, plugin, prompt, propertyIsEnum, radis, reset, screenX,  screenY, scroll, secure, select, self, setInterval, setTimeout, status, submit, taint, text, textarea, top, unescape, untaint,  window




5. HTML 이벤트 처리기

모든 HTML 이벤트 이름을 사용하면 안된다. 


HTML


  onblur, onclick, onerrer, onfocus, onkeydown, onkeypress, onkeyup, onmouseover, onload, onmouseup,  onmousedown, onsubmit

 


Comments