---
# System prepended metadata

title: "\U0001F3C5 Day 10 - if、else if、else 練習二"
tags: [JS 直播班 - 2023 秋季班]

---

---
tags: JS 直播班 - 2023 秋季班
---
# 🏅 Day 10 - if、else if、else 練習二

### 題目

延續 [Day 9](https://hackmd.io/uQqoUYisQpea-XCeXDFDjA) 的知識，試著回答下面問題。

問題
---

觀看下方程式碼，試著回答出最後 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 連結貼至底下回報就算完成了喔! 
解答位置請參考下圖（需打開程式碼的部分觀看）

![](https://i.imgur.com/vftL5i0.png)

<!-- 解答：  

1. 'a 等於 b'
2. '六角學院 讚！'
3. '沒錯！'
-->




回報區
---


|     Discord      |                                CodePen / 答案                                |
|:----------------:|:----------------------------------------------------------------------------:|
|風羽|[CodePen](https://codepen.io/Joy-Huang/pen/qBgWrOb?editors=0011)|
|詹姆士|[CodePen](https://codepen.io/z111048/pen/NWoKpaE)|
|銀光菇|[CodePen](https://codepen.io/genesynthesis/pen/ZEwzevE)|
|pinyi_9|[CodePen](https://codepen.io/Wpypy/pen/MWLgpVg?editors=1010)|
|kuanju27|[CodePen](https://codepen.io/Eero-Chiao/pen/NWoKpye)|
|santu0868|[CodePen](https://codepen.io/HatsumiSan/pen/PoVYpeB)|
|Rxzan|[Codepen](https://codepen.io/Tzuru-Chen/pen/LYqPWry)|
|cest_jessie|[Codepen](https://codepen.io/itsjessiechen/pen/VwgZpJQ)|
|xiaokui_71292|[Codepen](https://codepen.io/pen?template=MWLgmYK)|
|ShangChu|[Codepen](https://codepen.io/shangchu0412/pen/oNmvWNp?editors=0011)|
| yuan! | [CodePen](https://codepen.io/townyuan/pen/mdvbmdG) |
| zona | [CodePen](https://codepen.io/w242920/pen/yLZBbNe) |
| Ching | [CodePen](https://codepen.io/pen/?editors=0011) |
| Ivy | [CodePen](https://codepen.io/Irene-Ke/pen/mdvbmez?editors=1010) |
| CPing | [CodePen](https://codepen.io/CPing/pen/KKJPmXM) |
| Peng | [CodePen](https://codepen.io/H-Peng/pen/MWLgmrp?editors=0010) |
| 奔跑吧(GTR150) | [CodePen](https://codepen.io/Wer-Qwe/pen/abXoWYq?editors=1112) |
| Allen| [CodePen](https://codepen.io/hlctw/pen/dyabWdg) |
| Alyce| [CodePen](https://codepen.io/alycehwy/pen/VwgZbxq?editors=0010) |
| 精靈 | [CodePen](https://codepen.io/justafairy/pen/OJdLmZL) |
| ⭐️小正 | [CodePen](https://codepen.io/colorgolden/pen/NWoKjzx) |
| Helen | [CodePen](https://codepen.io/milkteamonster/pen/wvNwdPv?editors=1010) |
| Andy | [CodePen](https://codepen.io/andy31342/pen/VwgZbdq?editors=0010) |
| yuan2781 | [CodePen](https://codepen.io/ismebir/pen/oNmvWVJ) |
| Uli | [CodePen](https://codepen.io/uli1313/pen/MWLgoJV?editors=001) |
| dora | [CodePen](https://codepen.io/dorayu/pen/vYbBZgE?editors=1011) |
| ann6212 | [CodePen](https://codepen.io/yqmegupa-the-styleful/pen/NWoKggg?editors=1112) |
| 維哲 | [CodePen](https://codepen.io/kwz1202/pen/xxMKrdB) |
| Winnie | [CodePen](https://codepen.io/codepen-io-winnie/pen/mdvbMbm?editors=0010) |
| RX00| [CodePen](https://codepen.io/llqzknqv-the-styleful/pen/RwvbZPV?editors=0011) |
| 凱恩| [CodePen](https://codepen.io/Royen0506/pen/gOqYxaG) |
| tanuki5863 | [CodePen](https://codepen.io/tanuki320/pen/wvNwqjY?editors=1011) |
| Oria | [CodePen](https://codepen.io/kajing/pen/bGzboaN?editors=0010) |
| 阿榮 | [CodePen](https://codepen.io/codeitaday/pen/abXoybb) |
| kebukeyi | [CodePen](https://codepen.io/kebukeyi/pen/bGzboXe?editors=1111) |
|Moreene|[CodePen](https://codepen.io/Moreene/pen/QWYLOdM)|
|gebyman|[CodePen](https://codepen.io/gebyman/pen/YzBKEQP?editors=1012)|
| phyllis_0802 | [CodePen](https://codepen.io/Phyllis-Cheng/pen/dyabVgw) |
| Ataraxia | [CodePen](https://codepen.io/ataraxia8888/pen/vYvQPQY) |
| Mattie | [CodePen](https://codepen.io/mattielin/pen/bGzbaqj) |
| minnielin | [CodePen](https://codepen.io/ShengXin-Lin/pen/rNPBJGm) |
| Leo | [CodePen]([網址](https://codepen.io/Aruminiya/pen/PoVYQKv)) |
| 荷菓かのり | [CodePen](https://codepen.io/oogxwkvw-the-builder/pen/JjxPLmg?editors=0012) |
| hsuanlee1084 | [CodePen](https://codepen.io/hsuanlee1024/pen/VwgZXNa?editors=1010)|
| MY | [CodePen](https://codepen.io/ahmomoz/pen/VwgZXOa) |
| runweiting | [CodePen](https://codepen.io/weiting14/pen/LYqPmxZ) |
| JasonFU | [CodePen](https://codepen.io/jie-Fu/pen/gOqYzWo?editors=1010) |
| Zem | [CodePen](https://codepen.io/Potoro/pen/qBgWYwj) |
| jiayu | [CodePen](https://codepen.io/fjqxaznl-the-reactor/pen/BaMBVRg?editors=0010) |
| 蛋塔 |[Codepen](https://codepen.io/Hong-Game1/pen/abXoKwL)|
| Jun_ |[Codepen](https://codepen.io/Jun-L/pen/ExrYeLP)|
| Vivian2857 |[Codepen](https://codepen.io/uojbohed-the-solid/pen/dyabqjR?editors=0010)|
| 保羅 |[Codepen](https://codepen.io/paul-1997/pen/PoVYyWL?editors=0011)|
| nini1202desu | [CodePen](https://codepen.io/tvxq5206/pen/PoVYypL?editors=0011) |
| yu.t_liu | [CodePen](https://codepen.io/YuT200053/pen/YzBKJMg?editors=0010) |
|OSN|[Codepen](https://codepen.io/osncodepen/pen/qBgWQZg?editors=1111)|
| shiro | [CodePen](https://codepen.io/chenghsienwang/pen/poGzqOX) |
| celinelinnn |[CodePen](https://codepen.io/celinephoebe/pen/gOqYZBz)|
| jimmy.0706 |[CodePen](https://codepen.io/WeiJun-Mao/pen/BaMBgEZ?editors=0010)|
| Eden | [Codepen](https://codepen.io/iseden/pen/OJdLeGm)|
| Eden | [Codepen](https://codepen.io/michaelhsia/pen/OJdLKOv)|
| Yijing | [CodePen](https://codepen.io/Yi-Jing-71080635/pen/MWLgNLg) |
| 郭芙蘭#6374 | [CodePen](https://codepen.io/flora_Kuo/pen/abXbodJ?editors=1011) |
| Rogan | [CodePen](https://codepen.io/RoganHsu/pen/gOqOYwQ?editors=0011) |
| 辣椒 | [Codepen](https://codepen.io/chilichen118/pen/NWoWKoG) ||
| xin | [Codepen](https://codepen.io/Estherrrrrr999/pen/KKbOYQO) ||
| Noah | [Codepen](https://codepen.io/lch1222/pen/YzBzzdy?editors=1111) |
| davidtt | [Codepen](https://codepen.io/David-Tsai/pen/jOdOORz?editors=0011) |
| ming0712 | [Codepen](https://codepen.io/StevenHuang/pen/KKJKpgw?editors=0010) |
| SHUO | [CodePen](https://codepen.io/xrzarxkl-the-reactor/pen/mdaNgNz?editors=1112) |
| MDFK | [CodePen](https://codepen.io/maywang/pen/wvNvGEw?editors=0012) |
| Tina02 | [CodePen](https://codepen.io/chjitlox-the-bashful/pen/wvNwvKo) |
| LinaChen | [CodePen](https://codepen.io/LinaChen/pen/vYbYxop) |
| shcopy | [CodePen](https://codepen.io/shcopy/pen/LYqYyje) |
| claire | [CodePen](https://codepen.io/yi-wen-chen/pen/RwvwVMq) |
| Lychee KK | [CodePen](https://codepen.io/kakakala/pen/oNmNeBb) |
| _shun0130 | [CodePen](https://codepen.io/koba60052ww/pen/qBgBpMN?editors=0010) |
| hsu0921 | [CodePen](https://codepen.io/HSUANIN0327/pen/xxMxYRd) |
| Lainie1931 | [CodePen](https://codepen.io/Lainie88/pen/RwvwMbO?editors=0010) |
| 楓仔 | [CodePen](https://codepen.io/maplestartend/pen/BaMaqMX?editors=1112) |
| Zhu | [CodePen](https://codepen.io/codepenplayer/pen/yLZLQBg) |
| damon0323 | [CodePen](https://codepen.io/swk9eny2/pen/jOdOQBy?editors=0010) |
| Chia Pin | [CodePen](https://codepen.io/joker-cat/pen/wvNvRoP) |
| xuan| [CodePen](https://codepen.io/xuan0915/pen/qBgBgOr?editors=0012) |
| Daylily | [CodePen](https://codepen.io/daylily/pen/BaMaerE) |
| hsiu8767 | [CodePen](https://codepen.io/hsiu8767/pen/JjxorNE?editors=0111) |
| Joy chiang | [CodePen](https://codepen.io/fwysphbw-the-vuer/pen/bGzNveN?editors=1010) |
| sponge | [CodePen](https://codepen.io/biunpujm-the-flexboxer/pen/vYbEjNO?editors=1010) |
|hank._.z| [CodePen](https://codepen.io/linoiaby-the-sans/pen/OJdPBor)
| hsuhsusophie | [CodePen](https://codepen.io/hsuhsusophie/pen/YzBPJBL?editors=0010) |
| yuling | [CodePen](https://codepen.io/igzdflpu/pen/YzBPBBL) |
| 阿賀#3700 | [CodePen](https://codepen.io/sungho/details/vYbOmNx) |
| 白夜 | [CodePen](https://codepen.io/Wei903/pen/QWYjLNB?editors=0010) |
| Jerry | [CodePen](https://codepen.io/ildkosxk-the-encoder/pen/bGzVGVJ) |
| QOO#8446 | [CodePen](https://codepen.io/QOOQOOQ/pen/WNPepBq?editors=0011) |
| 歐陽龍龍#1061 | [CodePen](https://codepen.io/dizzydog-rgb/pen/BaMopGB) |
| ss585801 | [CodePen](https://codepen.io/ss585801/pen/abXvJdK?editors=0010) |
| skypassion5000 | [CodePen](https://codepen.io/skypassion5000/pen/PoVPLwa?editors=0011) |
| Befun | [CodePen](https://codepen.io/richard260572/pen/JjxYgwz?editors=0010) |
| 阿維#2569 | [CodePen](https://codepen.io/iijojpli-the-looper/pen/BaMjvmy?editors=0011) |
| peggy | [CodePen](https://codepen.io/peggylai/pen/BaMjeOw?editors=0010) |
| Iris | [CodePen](https://codepen.io/iris831206/pen/dyaGBMv) |
| Cosmos | [CodePen](https://codepen.io/violet7755/pen/gOqwjBx) |
| _Luna | [CodePen](https://codepen.io/sfctsolp-the-sasster/pen/QWYdZYj?editors=0010) |
| shcopy | [CodePen](https://codepen.io/shcopy/pen/LYqYyje) |
| Rochel | [Codepen](https://codepen.io/rochelwang1205/pen/gOqWXaZ?editors=1111)|
| ChrisSQR | [CodePen](https://codepen.io/ChrisSQR/pen/poGdweQ) |
| macihuang | [CodePen](https://codepen.io/macy1215/pen/ExrLbxw) |
| bf_tsai | [CodePen](https://codepen.io/BF-Tsai/pen/QWYVWMe?editors=1111) |
| NathanJames |[CodePen](https://codepen.io/ufo060204/pen/qBgMpoQ)|
| 雪維 | [Codepen](https://codepen.io/Shawey/pen/jENKxbx) |