JS kalit so‘zlari


In JavaScript you cannot use these reserved words as variables, labels, or function names:
abstract arguments async * 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
function import * in instanceof
int interface let * long
native new null package
private protected public * return
short static * super * switch
synchronized this throw throws
transient true try typeof
using * var void volatile
while with yield *

* bilan belgilangan so‘zlar JavaScript-ga 2015 yildan keyin qo‘shilgan.

JavaScript-ning eng yangi versiyalarini JS News 2025-2015 da ko‘proq o‘qishingiz mumkin.


ULASHISH

O‘chirilgan zahiralangan so‘zlar

The following reserved words was removed from the ECMAScript 5/6 standard:
abstract boolean byte char
double final float goto
int long native short
synchronized throws transient volatile


JavaScript obyektlari, xususiyatlari va usullari

You should also avoid using the name of JavaScript built-in objects, properties, and methods:
Array Date eval function
hasOwnProperty Infinity isFinite isNaN
isPrototypeOf length Math NaN
name Number Object prototype
String toString undefined valueOf

Java zahiralangan so‘zlar

JavaScript is often used together with Java. You should avoid using some Java objects and properties as JavaScript identifiers:
getClass java JavaArray javaClass
JavaObject JavaPackage

Boshqa zahiradagi so‘zlar

JavaScript ko‘plab ilovalarda dasturlash tili sifatida ishlatilishi mumkin.

You should also avoid using the name of HTML and Window objects and properties:
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

HTML hodisalarni ishlov beruvchilar

Bundan tashqari, barcha HTML Eventlar ishlov beruvchilarining nomini ishlatishdan qochishingiz kerak.

Misollar:
onblur onclick onerror onfocus
onkeydown onkeypress onkeyup onmouseover
onload onmouseup onmousedown onsubmit

W3Schools Pathfinder

Yutuqlaringizni kuzating – bu bepul!