如上所述,并在屏幕截图中呈现。
在有效的 JS 代码上使用Format document(问号之间没有空格)会产生错误。
到目前为止我尝试过更改格式化程序,但无济于事。错误特别令人恼火,因为我打开了“保存格式”选项,而且我喜欢这样。工作室版本是1.46。
如果您想自己复制它,请随意:
let iForgotToInitializeThat = undefined;
const coalesceResult = iForgotToInitializeThat ?? 'something';
Run Code Online (Sandbox Code Playgroud)