``` function sayHi(){ console.log(name2) console.log(age) var name2 = 'xxxx' let age = 21 } ``` ``` for(let i=0; i<3;i++){ setTimeout(()=>console.log(i),1); } for(var j=0; j<3;j++){ setTimeout(()=>console.log(j),1); } ``` ``` const shape = { radius:10, diameter() { return this.radius *2; }, perimeter:()=> 2* Math.PI * this.radius }; shape.diameter(); shape.perimeter(); ``` ``` +true; !"hello"; ``` ``` let a=3 let b = new Number(3) console.log(a == b) console.log(a ===b) ``` ``` function sum(a,b){ return a+b; } sum(1,"2") ``` ``` var num = 8 var num = 10 console.log(num) ``` ``` ``` ``` ``` apache2+fast-cgi+php的安装步骤 mariadb10 配置
No Leanote account? Sign up now.