1、
let [a=3,b=a]=[] //3
let [a=3,b=a] = [1] //1
let [a=3,b=a] = [1,2] //1,2
//默认值的原因
2、HTTP:Tcp 运输层、IP 网络层、http 应用层
3、属性可以继承:color、font-size
字体系列:font-family,font-size,font-style,font-weight,font-stretch,font-size-adjust;
列表相关:list-style,list-style-image,list-style-position,list-style-type,list-style-color;
文本系列:text-indent,text-align,line-height,word-spaceing,letter-spacing,text-transform,direction,color;
元素可见性:visibility;
表格布局:caption-side,border-collapse,border-spacing,empty-cells,table-layout;
生成内容:quotes;
光标属性:cursor;
页面样式:page,page-break-inside,Windows,orphans;
声音样式属性:speak、speak-punctuation、speak-numeral、speak-header、speech-rate、volume、voice-family、pitch、pitch-range、stress、richness、、azimuth、elevation。
4、
console.log(null==undefined) //true
console.log(null==undefined) //true
console.log('a'===new String('a')) //false
console.log('9'>'10') //true
5、
function a (value){
return function b(){
value = value+1;
return value
}
}
var c = a(10)
c()
alert(c())
//12
6、
function add (a,b){return a+b}
alert(add(1)) //NAN
alert(add(1,2,3)) //3