-
### let 和 const 命令
* 不存在变量提升
* 暂时性死区
* 块级作用域
* `window| global`顶层对象的属性
### 变量的解构
```
let [x, , y] = [1, 2, 3];
x // 1
y // 3
let [head, ...tail] = [1, 2, 3, 4];
head // 1
tail // [2, 3…
-
I've try with `require('idb.filesystem.js')`
but got this error when compiling to production:
```
Unexpected token: name [./node_modules/idb.filesystem.js/src/idb.filesystem.js:43,0][dist/js/index…
-
When should each be used and what kind of data structures would require using them instead of typical objects or arrays.
* [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Glob…
-
Hi, I am trying to use ES6 generator syntax with function\* & yield, but I get the following error:
```
ERROR in ./src/index.tsx
Module build failed: SyntaxError: c:/code/test-app/src/index.tsx: Unex…
-
Hi, are there any plans of switching to components React.Component instead of React.createClass?
-
why source code do not choose es6 coding style?
-
For example, save a file as .js containing:
```es6
const a = `b = ${b}`;
const b = `http://${host}/mydir/`;
'string';
// comment
```
In the case of `a`, the `b =` is black as if it were cod…
IBwWG updated
7 years ago
-
We are experiencing great difficulty running the latest OpenSeaDragonGL on Windows 7 and Visual Studio 2015 as it requires ES6 javascript. OpenSeaDragon runs fine but we would like to introduce OpenSe…
-
The project website and npm page (in usage examples) suggests that the package is distributed in es6 module format, but that doesn't seem to be the case.
Doing `npm install --save ttag` and putting `…
-
#### ELF 版本
1.9.1
#### 运行环境
node: v8.12.0
#### 报错信息
ERROR in js/bundle.js from UglifyJs
Unexpected token: name (ret) [js/bundle.js:107,8]