let s=Symbol(); console.log(s,typeof s);//Symbol() "symbol" let s2=Symbol('aaa'); let s3=Symbol('aaa'); let s4=Symbol.for('aaa'); let s5=Symbol.for('aaa'); console.log(s2===s3);//false console.log(s4===s5);//true
不能与其他数据进行运算
let result=s+100;
let result=s>100;
let result=s+s;
USONB you are so niubility
u undefined
s string symbol
o object
n null number
b boolean