Excerpt from :http://blog.csdn.net/erlian1992

Study well JavaScript, First of all, we need to understand JavaScript Some basic grammatical requirements of language :

One , Case sensitive

JavaScript Languages are case sensitive , Two strings have the same case , Is considered to be a different string .JavaScript Language keywords are also case sensitive , According to the grammar, it should be lowercase .

Two , Writing format

JavaScript Language ignores white space between sentences , The space between statements , Blank line , Indentation, etc. . In order to improve the readability of the program , These formats should be used , Make the program clearer , More readable .

3、 ... and , Comment statement

In order to improve the maintainability and readability of the program , There should be some comment statements , It's for people reading programs , There are single line comments and multi line comments , Single line comments start with double slashes , Multiple lines to /*,*/ Marks for the beginning and end .

( turn )JavaScript Two :JavaScript The basic grammar of language requires more related articles

  1. Get along well with Web And JavaScript( Two )-----javaScript Grammar summary ( Two ) involve Date And the syntax of arrays

    Date: document.write(document.lastModified)  The last time the page was updated a=new Date();  // establish a For a new era like y=a.getY ear( ...

  2. javascript( Scripting language )

    javascript( Scripting language ) One . Annotation syntax :1. Single-line comments // The comment 2. Multiline comment /* The comment */ Two . Output syntax js Language format , Try to write down , It belongs to double label <script type=”text/java ...

  3. JavaScript Introduction mode language norm Language foundation data type Common methods Array if_else Comparison operator for while function The global and local variables of a function {Javascript Study }

    Javascript Study JavaScript summary ECMAScript and JavaScript The relationship between 1996 year 11 month ,JavaScript Creator --Netscape company , It was decided that JavaScript ...

  4. TypeScript and JavaScript Which language is more advanced

    TypeScript and JavaScript Which language is more advanced The most popular technology stack in the last two years is that JavaScript, With ES6 The popularity of , Whether it's from the front-end browser , Back end NodeJS scene ,JavaScr ...

  5. JavaScript Two ( first js Program )

    One .<script>xxxx</script> Label parsing 1.charset : Optional , Said by src Property specified character set , Because most browsers ignore it , So very few people use it 2.defer: Optional ...

  6. How Javascript works (Javascript working principle ) ( fourteen ) analysis , Syntax abstract tree and the method of minimizing parsing time 5 Here's a tip

    Personal summary : Reading this article requires 15 minute , Abstract syntax tree and js The process by which the engine parses these syntax trees , I mentioned lazy parsing —— Is converted to AST It doesn't go directly into function body analysis , When the function body needs to be executed, the corresponding transformation will be carried out .( Because there are ...

  7. 【JavaScript】JavaScript Basic grammar &amp; Knowledge point

    JavaScript: It's script language : It's an explanatory language ( No compilation required ) effect : Make the page dynamic Part of the : ECMAScipt( The core ), Contains basic grammar . Variable . keyword . Reserved words . data type . sentence . Functions, etc ...

  8. JavaScript Study 01 Introduction to language 、 Basic usage and variable declaration

    JavaScript Introduction to language . Basic usage and variable declaration JavaScript It's Netscape (Netscape) A client based browser developed by the company . object-oriented . Event driven web scripting language . JavaScript Its predecessor is called Liv ...

  9. understand Javascript The dynamic language features of

    original text : understand Javascript The dynamic language features of understand Javascript The dynamic language features of Javascript It's an explanatory language , Not compiler , It doesn't compile into binary . Understand the concepts of dynamic execution and closure Dynamic execution : ...

  10. Learn from the beginning JavaScript ( Two )—— Variables and their scopes

    original text : Learn from the beginning JavaScript ( Two )-- Variables and their scopes One . Variable ECMAscript Variables are loose variables , Loose variables , The variable name can hold any type of data , Each variable is just a place holder for holding values ...

Random recommendation

  1. ASP.NET The second wave of website intrusion (LeaRun. Framework for rapid development of information technology Has been taken by the author )

    My primary school culture , Poor language organization , Please make do with what you can't write , No joy, no spray. . In the last part, I talked about how to invade the server when uploading files , Let's talk a little bit more this time . Let's talk about the process first : 1. Upload code page   I uploaded ashx page . 2 ...

  2. VBA Use in JavaScript Script language parsing JSON data

    JSON:JavaScript Object notation (JavaScript Object Notation) and xml be similar , It's all text form ( Save in text file or string etc ), such as : jsstr = {" ...

  3. MySQL Understanding and analysis of character set coding

    Today, I help my colleagues to deal with a difficult matter , The problem is that : No matter which version is used on the client mysql The client connects to the server , Found that as long as the server side set up character-set-server = utf8 after , characte ...

  4. On the 237th day how can I insist

    I seem to be crazy about novels recently ,< Spirituality >, And I feel like I can read novels . Words , It's cold today , I'm afraid it will freeze on the road , Cold wind, red bone . I really want to buy a hat . I want to give you a hat . sleep .

  5. 《Pointers On C》 Reading notes ( Chapter two Basic concepts )

    1. The whole process from source code to executable program generation can be divided into two stages : Compile and link . among , The compilation process can be roughly divided into : Preprocessing . Compile and assemble . The preprocessing stage mainly deals with the preprocessing instructions in the source code ( Contains macro definition instructions < Such as #define& ...

  6. IIS7 Pseudo static URL Rewrite modular

    original text  IIS7 Pseudo static URL Rewrite modular stay Win7 Installed IIS7.5 after , Build some websites or blogs , however IIS7.5 There is no such thing as URL Rewrite function , That is to say, it is impossible to realize the pseudo static of the web address . I found it on the Internet ...

  7. Python&#183;—— process 1

    1. Process background seeing the name of a thing one thinks of its function , A process is a process in progress . A process is a pair of running programs ( An abstraction of ). The concept of process originated from the operating system , Is the core concept of the operating system , It is also one of the oldest and most important abstract concepts provided by the operating system . operating system ...

  8. About numpy The function in return After adding string type data to , The precision of the decimal point changes

    weekdays.pyimport numpy as npfrom datetime import datetimedef datestr2num(s): return datetime.strpti ...

  9. Win10 When you connect to the remote desktop, you will be prompted that your credentials do not work ?

    Win10 When you connect to the remote desktop, you will be prompted that your credentials do not work ?Win10 When connecting to a remote desktop , Tips “ Your voucher does not work ”. The original remote account password cannot be used , Causes the remote login system to fail . Here I summarize my own solutions , Share with big ...

  10. Android utilize Mediapalyer Play the local resource file sound

    First, in the res Create raw, And then mp3 Copy the music to raw Next Post the code directly // Start playing sound public class PlayVoice { private static MediaPlayer med ...