Skip to content

Instantly share code, notes, and snippets.

@showlovezz
Created March 12, 2020 00:59
Show Gist options
  • Save showlovezz/7df8af4b3771c728203b0067f66ffcae to your computer and use it in GitHub Desktop.
Save showlovezz/7df8af4b3771c728203b0067f66ffcae to your computer and use it in GitHub Desktop.
鼠年全馬鐵人挑戰 - 6-3
// == 相等運算子範例
console.log(1 == true) // 會得到 true
console.log('1' == 1) // 會得到 true
console.log('3.14E2' == 314) // 會得到 true
// === 嚴格相等運算子範例
console.log(1 == true) // 會得到 false
console.log('1' == 1) // 會得到 false
console.log('3.14E2' == 314) // 會得到 false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment