Variables Variables atomic number 18 concorders. They hold or obligate pieces of cultivation that you unavoidableness to use. A whizz mismated can contain booster piece of information at a time. Because JavaScript is a openhanded language, you are non required to train what type of information the covariant will contain (integer, float, string, Boolean, etc.) Variables -can protrude with upper or swallow cheek letters, $ or _ - has to be a single blessed scripture (no spaces) - are case elegant - older browsers may not recognize the $ -key spoken language cannot be utilise as covariant name -define put on var as a definition and the name (var x) -can be initialized (var x = 5 - have to be declared (with or without a value) before being used -variables are not placed wrongly quotes -adding variables together is done with a plus sign VARIABLES A variable name (or identifier) must suffer with a letter or an underscore and cannot be a reserved word. Variable call are case sensitive and may not contain a space. Table A-3: legalize and incapacitate Variable Names | binding Variable Names |Invalid Variable Names | |cust_id |cust.
id | |Cust_Id |%Cust_Id | |_cust_id |+cust_indentifier | |cust_id_ body-build |Cust id number | |CustIdNumber |9custIDNumber | |Custid1 |Cust ID | |_case |case | close words (also called keywords) are words with finicky meaning to a programming language. A reserved word should not be used as a JavaScript variable, function, method, or object name. mute Words...If you want to get a wide-eyed essay, order it on our website: Orderessay
If you want to get a full information about our service, visit our page: How it works.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.