1. 声明变量 //普通写法 let x; let y = 20; //简写 let x, y = 20; 2. 给多个变量赋值 //普通写法 let a, b, c; a = 5; b = 8; c = 12; //简写 let [a, b, c] = [5, 8, 12]; 3. 三元运算符 //普通写法 let marks = 26; let result; if(marks >= 30){ result = 'Pass'; }else{ result = 'Fail'; } //简写 l…