📜  检查isset变量js - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:08.135000             🧑  作者: Mango

代码示例1
var status = 'Variable exists'

try {
  myVar
} catch (ReferenceError) {
  status = 'Variable does not exist'
}

console.log(status)