أحدث المواضيع

دورة JavaScript | شرح JavaScript | الدرس 23 | شرح كل من Hoisting DOM Reserved Words

دورة JavaScript | شرح JavaScript  
  | الدرس 23 |
  Hoisting DOM Reserved Words

تقدم لكم قناة المطور بالتعاون مع موقع المطور دورة Java Script الأكبر عربياً 


دورة JavaScript | شرح JavaScript | الدرس 23 |  شرح كل من Hoisting DOM Reserved Words
دورة JavaScript | شرح JavaScript | الدرس 23 |  شرح كل من Hoisting DOM Reserved Words


شاهد الدرس 
 | الدرس 23 |
  Hoisting DOM Reserved Words
 مشاهدة مفيدة ان شاء الله تعالى





Reserved Words


JavaScript Reserved Words

In JavaScript you cannot use these reserved words as variables, labels, or function names:

abstractargumentsbooleanbreakbyte
casecatchcharclass*const
continuedebuggerdefaultdeletedo
doubleelseenum*evalexport*
extends*falsefinalfinallyfloat
forfunctiongotoifimplements
import*ininstanceofintinterface
letlongnativenewnull
packageprivateprotectedpublicreturn
shortstaticsuper*switchsynchronized
thisthrowthrowstransienttrue
trytypeofvarvoidvolatile
whilewithyield



JavaScript Objects, Properties, and Methods

You should also avoid using the name of JavaScript built-in objects, properties, and methods:
ArrayDateevalfunctionhasOwnProperty
InfinityisFiniteisNaNisPrototypeOflength
MathNaNnameNumberObject
prototypeStringtoStringundefinedvalueOf


Java Reserved Words

JavaScript is often used together with Java. You should avoid using some Java objects and properties as JavaScript identifiers:
getClassjavaJavaArrayjavaClassJavaObjectJavaPackage


Windows Reserved Words

JavaScript can be used outside HTML. It can be used as the programming language in many other applications.
In HTML you must (for portability you should) avoid using the name of HTML and Windows objects and properties:
alertallanchoranchorsarea
assignblurbuttoncheckboxclearInterval
clearTimeoutclientInformationcloseclosedconfirm
constructorcryptodecodeURIdecodeURIComponentdefaultStatus
documentelementelementsembedembeds
encodeURIencodeURIComponentescapeeventfileUpload
focusformformsframeinnerHeight
innerWidthlayerlayerslinklocation
mimeTypesnavigatenavigatorframesframeRate
hiddenhistoryimageimagesoffscreenBuffering
openopeneroptionouterHeightouterWidth
packagespageXOffsetpageYOffsetparentparseFloat
parseIntpasswordpkcs11pluginprompt
propertyIsEnumradioresetscreenXscreenY
scrollsecureselectselfsetInterval
setTimeoutstatussubmittainttext
textareatopunescapeuntaintwindow


HTML Event Handlers

In addition you should avoid using the name of all HTML event handlers.
Examples:
onbluronclickonerroronfocus
onkeydownonkeypressonkeyuponmouseover
onloadonmouseuponmousedownonsubmit

المصدر للكلمات المحجوزة من هنا 


دورة JavaScript | شرح JavaScript
 | الدرس 23 |
  Hoisting DOM Reserved Words

المطور DeveWebe Designed by Templateism | MyBloggerLab Copyright © 2014

يتم التشغيل بواسطة Blogger.