- 23
- 0
- 约6.54千字
- 约 9页
- 2017-08-15 发布于河南
- 举报
js语句及语法(JS statements and syntax)
js语句及语法(JS statements and syntax)
The statements provided by JavaScript fall into the following categories:
1. variables declaration, assignment statement: var.
The syntax is as follows: VAR variable name [= initial value]
For example: VAR computer = 32 / / computer definition is a variable, and the initial value is 32.
2. function definition statement: function, return.
The syntax is as follows: the function function name (the arguments that the function takes)
{
Function execution section
}
The return expression //return statement specifies the value to return.
Example: function square (x)
{
您可能关注的文档
- joo1(joo1).doc
- java面试纠错题目大全(Java interview error correction topics).doc
- jorinde and joringel(jorinde和joringel).doc
- js document对象(i document对象).doc
- jdbc 访问各种数据库 url 语法(总结篇)(JDBC access various database URL syntax (summary)).doc
- java面象对象编程(Java object like programming).doc
- jsp input限制输入(JSP input restrict input).doc
- juniper基本配置入门(Introduction to basic configuration of juniper).doc
- js语法(JS syntax).doc
- jtgkuy(jtgkuy).doc
- kappa的时尚cio(Kappa's fashion CIO).doc
- kevin学习英语路(Kevin study English Road).doc
- kidney stone(肾结石).doc
- koutouchan(koutouchan).doc
- la salle de bain2(bain2 room).doc
- latex快速入门(Latex quick start).doc
- led光安全相关(LED light security related).doc
原创力文档

文档评论(0)