Professional JavaScript for Web Developers -1

ECMAScipt, the core of JavaScript, describles  the language syntax and basic objects.
The Document of Model(DOM) describe methods and interfaces for working with the content of a Web page.
THe Browser Object Model(BOM) describes methods and interfaces for interacting with the brower.


Syntax
Everything is case-sensitive
Variables are loosely typed
End-of-line semicolons are optional.
Comments are the same as in Java,C, and Perl
Braces indicate code blocks.
Unlike Java, variables in ECMAScript do not require initialization.
Also unlike Java, variables can hold different types of values at different times.


Primitive values are simple pieces of data that are stored on the stack, which is
to say that their value is stored directly in the location that the variables accesses.

Reference values, on the other hand, are objects that are stored in the heap,
meaning that the valus store in the variable location is a pointer to a location
in memory where the object is sotred.

Five primitive types: Undefined, Null, Boolean, Number, and String.

The value undefined is actually a derivative of the value null.
Even though the values are both true, they are considered to have different meanings.
whereas undefined is the value assigned when a variable is declared and not initialized
,null is the value used to represent an object that doesn't exist.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值