# 🏅 Day 10 - if、else if、else 練習二 ### 題目 延續 Day 9 的知識,試著回答下面問題。 問題 --- 觀看下方程式碼,試著回答出最後 console.log 會印出什麼: 第一題: ```javascript= let a = 10; let b = '10'; if( a >= b ){ console.log('a 等於 b'); } else { console.log('a 不等於 b'); } ``` 第二題: ```javascript= let c = false; if(!c){ console.log('六角學院 讚!'); } else { console.log('六角學院 讚讚!'); } ``` 第三題: ```javascript= let d = 100; if(d == '100'){ console.log('沒錯!'); } else if ( d != '100') { console.log ('這陷阱題!'); } else { console.log('錯!'); } ``` ## 回報流程 將答案寫在 CodePen 並複製 CodePen 連結貼至底下回報就算完成了喔! 解答位置請參考下圖(需打開程式碼的部分觀看)  <!-- 解答: 1. 'a 等於 b' 2. '六角學院 讚!' 3. '沒錯!' --> 回報區 --- | # | Discord | CodePen / 答案 | | --- | ----- | ----- | | 01 | pja._. | [CodePen](https://codepen.io/PJA0103/pen/GgKGLXO?editors=0011) | | 02 | 馬德 | [CodePen](https://codepen.io/maywang/pen/dPbKEyR?editors=0012) | | 03 | HarryKuo | [CodePen](https://codepen.io/harry_kuo/pen/azoKrBp?editors=0012) | | 04 | Tau | [CodePen](https://codepen.io/Tau-Hsu/pen/gbYKJLd?editors=0010) | | 05 | bian_yang_mofa | [CodePen](https://codepen.io/cssf998811/pen/bNbKyqJ?editors=0011) | | 06 | poyi | [CodePen](https://codepen.io/poyi-the-flexboxer/pen/Wbeyqer?editors=0012) | | 07 | ss585801 | [CodePen](https://codepen.io/ss585801/pen/XJrVJYZ?editors=0010) | | 08 | CC(tofuuu_cat) | [CodePen](https://codepen.io/CC-cat/pen/VYZdovv?editors=0012) | | 09 | daffytseng | [Codepen](https://codepen.io/Daffy-Tseng/pen/qEWKeVO) | | 10 | adengg | [Codepen](https://codepen.io/Osases/pen/xbKzvjG?editors=0012) | | 11 | potato_17859| [CodePen](https://codepen.io/Girl-Lee/pen/zxOaggv?editors=0110) | | 12 | Wayne_957 |[Codepen](https://codepen.io/Wayne957/pen/raBrBxO?editors=0010) | | 13 | janetlai |[Codepen](https://codepen.io/eiddkqxz-the-builder/pen/QwLBwdr?editors=1111) | 14 | Arsian Kuo |[Codepen](https://codepen.io/Arsian-Kuo/pen/NPKBPMz)| | 15 | Xuan | [CodePen](https://codepen.io/YiXuan-Chen-the-vuer/pen/ZYzjYwg) | | 16 | Benson | [CodePen](https://codepen.io/DevilButler/pen/QwLBbKR?editors=0011) | | 17 | JC | [CodePen](https://codepen.io/lifetimingwhisper/pen/ByBPNXB) | | 18 | sui_hsilan | [CodePen](https://codepen.io/suihsilan/pen/yyBqYGv?editors=0012) | | 19 | sian | [CodePen](https://codepen.io/uxitysjl-the-flexboxer/pen/ByBPjmm?editors=0011) | | 20 | ally_tsao | [Codepen](https://codepen.io/ggnhmrxv-the-scripter/pen/yyBqeWW?editors=0010)| | 21 | JanllyGuo | [Codepen](https://codepen.io/kedugaw/pen/ByBPzNa?editors=0010)| | 22 | Tammy | [Codepen](https://codepen.io/Tammy_Tsai/pen/bNbjemg)| | 23. | 地瓜 | [Codepen](https://codepen.io/wiibxzdw-the-bold/pen/jENpwZB?editors=0012)| | 24.|ZoeKang|[CodePen](https://codepen.io/byehywmx-the-animator/pen/OPLwQWo?editors=0011)| | 25 | Kai | [CodePen](https://codepen.io/beginneraboutlife116/pen/NPKYLwJ)| | 26 | wuyuli_21403 | [CodePen](https://codepen.io/Job-Wilhelm/pen/ByBPPjB)| | 27. | Lee | [CodePen](https://codepen.io/leemo-tseng/pen/NPKBBZp?editors=1111) | | 28. | Ali | [CodePen](https://codepen.io/Alicia1117/pen/MYgBzNV) | |29.|Nora| [CodePen](https://codepen.io/ehguhcmy-the-reactor/pen/wBwEvGw?editors=1111) | | 30. | will092317 | [CodePen](https://codepen.io/xuazoblx-the-flexboxer/pen/mybGdod)| | 31. | hsin yu | [CodePen](https://codepen.io/tina2793778/pen/emOLNXz?editors=0010) | | 32. | hsiang4100 | [CodePen](https://codepen.io/vvnrbgxl-the-typescripter/pen/XJrPzJp?editors=0010) | | 33. | yutzu | [CodePen](https://codepen.io/dtafsrmf-the-lessful/pen/XJrPJGL?editors=0010) | | 34. | JerryOOO | [CodePen](https://codepen.io/fatiangel/pen/XJrxNOm?editors=0011) | | 35. | shiang | [CodePen](https://codepen.io/shiang29/pen/ZYzmroP?editors=0010) | | 36. | 五五(evelyn_hey2024) | [CodePen](https://codepen.io/EvelynCH/pen/GgKzoPb) | | 37. | 0111 | [CodePen](https://codepen.io/0111mina/pen/yyBwgLj?editors=0010) | |38.|-----這條線以下都麻糬-----|[CodePen](https://codepen.io/tsfaydhk-the-selector/pen/OPLqZME?editors=0010)| |39.|Rylee|[CodePen](https://codepen.io/ryleezheng/pen/KwPYzZN)| |40.|佩妮|[CodePen](https://codepen.io/bmxbpggh-the-flexboxer/pen/dPbLdPm?editors=0012)| |41.|li-Wei-Min|[CodePen](https://codepen.io/leewayne/pen/ogNjrNr)| | 42. | Cami | [Codepen](https://codepen.io/irisLife/pen/EaxgroP) |
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up