아래 열거된 단어는 (변수명・라벨명・함수명)으로 사용 금지.
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 내장 (객체・속성・메서드) 이름
Array Date eval function
hasOwnProperty Infinity isFinite isNaN
isPrototypeOf length Math NaN
name Number Object prototype
String toString undefined valueOf
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
주소 복사
랜덤 이동