Skip to content

Instantly share code, notes, and snippets.

@showlovezz
Last active February 9, 2020 13:41
Show Gist options
  • Save showlovezz/c3fb1c5591206133bd6cfab8cdc64ed5 to your computer and use it in GitHub Desktop.
Save showlovezz/c3fb1c5591206133bd6cfab8cdc64ed5 to your computer and use it in GitHub Desktop.
鼠年全馬鐵人挑戰 - 1-3
console.log(status)
var status = 'failed';
function getStatus() {
console.log(status)
var status = 'ok';
return status
}
// 第一行會印出 failed
// 第四行會印出 undefined (未定義)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment