DEV Community

Davron
Davron

Posted on

Javascript reserved keywords || Javascriptdagi ta'qiqlangan kalit so'zlar

Javascriptda foydalanish mumkin bo'lmagan ba'zi kalit so'zlar mavjud. Quyida siz barcha ta'qiqlangan kalit so'zlarni ko'rishingiz mumkin.

O'zgaruvchilar nomlari va identifikatorlar uchun foydalanish mumkin bo'lmagan Javascriptdagi kalit so'zlar:

await, break, case, catch, class, const, continue, debugger, default, delete, do, else, enum, export, extends, false, finally, for, function, if, implements, import, in, instanceof, interface, new, null, package, private, protected, public, return, super, switch, this, throw, true, try, typeof, var, void, while, with, yield.

*Hech qachon o'zgaruvchilarni yuqoridagi nomlar bilan nomlamang.

Bundan tashqari ushbu HTML event'lardan identifikator sifatida foydalanmasligingiz kerak:

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

Top comments (0)