We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import
read-only
a.js
export const a = 1; export let b = 2
index.js
import {a, b} from './a'; a = '123'; // Module build failed: SyntaxError: "a" is read-only b = '123'; // Module build failed: SyntaxError: "b" is read-only
Symbol
ES6 引入了一种新的原始数据类型 Symbol,表示独一无二的值 它是 JavaScript 语言的第七种数据类型,前六种是:undefined、null、布尔值(Boolean)、字符串(String)、数值(Number)、对象(Object)
Generator
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1 .
import
引入的对象是read-only
的2 . 新的原始数据类型
Symbol
ES6 引入了一种新的原始数据类型 Symbol,表示独一无二的值
它是 JavaScript 语言的第七种数据类型,前六种是:undefined、null、布尔值(Boolean)、字符串(String)、数值(Number)、对象(Object)
3 . 箭头函数不能用作
Generator
函数The text was updated successfully, but these errors were encountered: