functionsay(){
console.log('hello world')}// TypeError: say(...) is not a functionsay();(function(){
console.log('hello')})();['苹果','香蕉'].forEach(function(item){
console.log(item)})
"`" 是 EcmaScript 6 中新增的一种字符串包裹方式,叫做:模板字符串,
键盘Esc下就是这个符号,英文状态可以打出来 ,一般读作:反引号
它支持换行和非常方便拼接变量
var foo =`
大家好
hello 床前明月光
world
哈哈哈 `
console.log(foo)