空值合并运算符(??)

版本新特性 / ES2020

// *** before: ***
var count = input.count || 10; // 0 and "" turn into 10 as well - rarely
//what you want

// *** in version ES2020: ***
const count = input.count ?? 10; // only null and undefined are replaced