变量:
let 块级变量
const 常量变量
----------------------------------------------
箭头函数:
箭头函数为 Javascript 语言增色不少。它使得代码更简洁。
------------------------------------------------
字符串:
几个方便的方法被添加到 String 的原型中:
my string'.startsWith('my'); //true
'my string'.endsWith('my'); // false
'my string'.includes('str'); // true
---创建重复字符串的方法
'my '.repeat(3); // 'my my my '
----------------------------------------------
模板字符串:
et name = 'John',
apples = 5,
pears = 7,
bananas = function() { return 3; }
console.log(`This is ${name}.`);
----------------------------------------------
数组ÿ