博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
JS - Lexical Structure
阅读量:4320 次
发布时间:2019-06-06

本文共 991 字,大约阅读时间需要 3 分钟。

1.

   JS programs are programed by Unicode character.

1.1

  JS programs are case-sensitive.

  HTML--non-case-sensitive.

  XHTML--case-sensitive.

  When objects and properties in JS are same to the tags and properties in HTML, the JS must be lowercase while HTML can be itsself.

1.2

  JS will ignore the space between tokens. At most time, JS will ignore newlines.

1.3 

  JS contains special characters to express special symbol. Use "\n" as prefix. Just like "\nu0072".

1.4

  Unicode had defined the first choice of code formats for every character.

2.

  JS supports two kinds of notes:

  "//" for a line

  "/*----*/" for a block

3.

  Literals: "Hello World", 12, null, 'javascript'

4.

  Tokens of JS must begin with letter, _, or $.

  Tokens of JS also support all character in Unicode.

  JS had defined some reserved words. Them cannot be the token.

5.

  When the sentence has exclusive line, it can end without ";".

  This is a bad habit.

 

转载于:https://www.cnblogs.com/zawjdbb/p/6208762.html

你可能感兴趣的文章
十二种获取Spring的上下文环境ApplicationContext的方法
查看>>
UVA 11346 Probability 概率 (连续概率)
查看>>
linux uniq 命令
查看>>
Openssl rand命令
查看>>
HDU2825 Wireless Password 【AC自动机】【状压DP】
查看>>
BZOJ1015: [JSOI2008]星球大战starwar【并查集】【傻逼题】
查看>>
HUT-XXXX Strange display 容斥定理,线性规划
查看>>
mac修改用户名
查看>>
一道关于员工与部门查询的SQL笔试题
查看>>
Canvas基础
查看>>
[Hive - LanguageManual] Alter Table/Partition/Column
查看>>
可持久化数组
查看>>
去除IDEA报黄色/灰色的重复代码的下划波浪线
查看>>
Linux发送qq、网易邮件服务配置
查看>>
几道面试题
查看>>
【转】使用 WebGL 进行 3D 开发,第 1 部分: WebGL 简介
查看>>
js用正则表达式控制价格输入
查看>>
chromium浏览器开发系列第三篇:chromium源码目录结构
查看>>
java开发操作系统内核:由实模式进入保护模式之32位寻址
查看>>
第五讲:单例模式
查看>>