{"size": 272, "ext": "js", "max_stars_repo_path": "ES2020/test2.js", "max_stars_repo_name": "zhengpj95/JavaScript", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ES2020/test2.js", "max_issues_repo_name": "zhengpj95/JavaScript", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ES2020/test2.js", "max_forks_repo_name": "zhengpj95/JavaScript", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.9230769231, "max_line_length": 46, "alphanum_fraction": 0.5183823529}
/**
 * 空位合并操作符（Nullish coalescing Operator）
 */

//  使用 ?: 或者 || 时，0, null, undefined, '' 都会被忽略
let a = 0; //0, null, undefined, ''
console.log(a ? a : 11);
console.log(a || 22);

// ?? 不会忽略 0, ''
// 相当于 a !== null && a !== undefined ? a : 33
console.log('---', a ?? 33);
