- other ECMAScripts: typeScript, coffeeScript
- like property in c sharp: get, set
- use ... to concatenate a list
- naming: iAmAMethod, iAmAVariable
- use let or const instead of var
- indent: two space instead of tab
- a line should be less then 80 columns
- apart from DOM (document), there is a BOM (browser)
- it has yield
- 1 == '1'; 1 !== '1' (=== will not cast)
- field name can be variable:
- let x = 'C';
- let obj = {A: a, }
JavaScript that I just know about
最新推荐文章于 2024-02-05 09:29:47 发布