• 회원가입
  • 로그인
  • 구글아이디로 로그인

[js] JS - 예약어 (= 변수명・라벨명・함수명 등으로 사용 불가능한 단어)

아래 열거된 단어는 (변수명・라벨명・함수명)으로 사용 금지.



1. JS 예약어

 

abstract

arguments

await*

boolean

break

byte

case

catch

char

class*

const

continue

debugger

default

delete

do

double

else

enum*

eval

export*

extends*

false

final

finally

float

for

function

goto

if

implements

import*

ininstanceof

int

interface

let*

long

native

new

null

package

private

protected

public

return

short

static

super*

switch

synchronized

this

throw

throws

transient

true

try

typeof

var

void

volatile

while

with

yield


[참고] * 기호 붙은 단언은 ECMAScript 5・6 때 추가된 단어.

 

 


2. ECMAScript 5/6 표준에서 제거된 예약어 

(∵ 제거되었긴 하나, 브라우저마다 지원 여부 다를 수 있으니 되도록 사용 금지.)


abstract

boolean

byte

char

double

final

float

goto

int

long

native

short

synchronized

throws

transient

volatile



3. JS 내장 (객체・속성・메서드) 이름

 

ArrayDateevalfunction

hasOwnPropertyInfinityisFiniteisNaN

isPrototypeOflengthMathNaN

nameNumberObjectprototype

StringtoStringundefinedvalueOf

 


4. JAVA 예약어

(∵ JS는 JAVA와도 함께 사용되므로.)

 

getClass

java

JavaArray

javaClass

JavaObject

JavaPackage



5. HTML・window 객체 이름

 

alert

all

anchor

anchors

area

assign

blur

button

checkbox

clearInterval

clearTimeout

clientInformation

close

closed

confirm

constructor

crypto

decodeURI

decodeURIComponent

defaultStatus

document

element

elements

embed

embeds

encodeURI

encodeURIComponent

escape

event

fileUpload

focus

form

forms

frame

innerHeight

innerWidth

layer

layers

link

location

mimeTypes

navigate

navigator

frames

frameRate

hidden

history

image

images

offscreenBuffering

open

opener

option

outerHeight

outerWidth

packages

pageXOffset

pageYOffset

parent

parseFloat

parseInt

password

pkcs11

plugin

prompt

propertyIsEnum

radio

reset

screenX

screenY

scroll

secure

select

self

setInterval

setTimeout

status

submit

taint

text

textarea

top

unescape

untaint

window

 


6. HTML 이벤트 핸들러 이름

 

onblur

onclick

onerror

onfocus

onkeydown

onkeypress

onkeyup

onmouseover

onload

onmouseup

onmousedown

onsubmit

 

방문 감사합니다. (즐겨찾기 등록: Ctrl + D)

분류 제목
Basic JS - Home (JS입문) + Javascript Framework (프레임워크) 종류
Basic JS - Intro (JS소개)
Basic JS - Where To (JS위치) - JS구문 / JS코드위치 / JS사용법 ※ JS외부링크 주의사항
Basic JS - Output (JS출력= JS쓰기) ★★★★★
Basic JS - Syntax (JS구문) ★
Basic JS - Statement (JS구문= JS명령문)
Basic JS - Comment (JS주석)
Basic JS - Variable (JS변수) ★★★★★
Basic JS - Operator (연산자) - JS연산자 ★★★★★
Basic JS - Data Type - 데이터유형 ★★★★★ (= 데이터형식 = 데이터타입 = 데이터종류 = 자료형…
Basic JS - Function - JS함수 ★★★★★ ※ 일반함수 특징 2
Basic JS - Object - JS객체 ★★★★★
Basic JS - Scope - JS유효범위 (= JS접근범위 = 변수 종류) ★★★★★★★★★★
Basic JS - Event - JS이벤트 (= JS코드실행방법) ★★★★★
Basic JS - Strings - JS문자열
Basic JS - String Methods - JS문자열메서드
Basic JS - Number - JS숫자
Basic JS - Number Method - JS숫자메서드
Basic JS - Math 객체 - JS수학객체 (= JS산수객체 = Math객체 = Math Object = 매스 …
Basic JS - Dates - JS날짜
1/67
목록
찾아주셔서 감사합니다. Since 2012