---
# System prepended metadata

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

---

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

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

<!-- 解答：  

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




回報區
---
| #   | Discord | CodePen / 答案 |
| --- | ----- | ----- |
| 01 | 泊岸  | [CodePen](https://codepen.io/qoq77416416/pen/wvVGMpL?editors=0011) | 
|02|朋仔|[CodePen](https://codepen.io/YPHUANG/pen/RwXagYZ?editors=0011)|
|03|Jainee|[CodePen](https://codepen.io/Jainee0110/pen/rNXLQxr)|
|04|haojing|[CodePen](https://codepen.io/hjxu/pen/VwomKdp)|
|05|voke|[CodePen](https://codepen.io/FiSi-the-lessful/pen/BaXKzVx)|
|06|jimmy.0706|[CodePen](https://codepen.io/JimmyMao/pen/QWeGPYZ?editors=0012)|
|07|mercury2508.|[CodePen](https://codepen.io/Mercury2508/pen/mdNOgoB)|
|08|tim|[CodePen](https://codepen.io/jskrtivy-the-animator/pen/wvVoZLx?editors=0010)|
|09|a1phaki(小k)|[CodePen](https://codepen.io/a1phaki/pen/QWeGRbY)|
|10|anderson666|[CodePen](https://codepen.io/goodmanbuild/pen/KKONLpY)|
|11|KOMATSU PEI|[CodePen](https://codepen.io/Komatsu2021/pen/poMNBXB)|
|12|邵|[Codepen](https://codepen.io/ukscrlno-the-typescripter/pen/eYqBadN?editors=0011)|
|13|是在哈囉|[Codepen](https://codepen.io/miyxdhem-the-solid/pen/RwXomVM?editors=1111)|
|14| Ruby | [CodePen](https://codepen.io/xivgaijl-the-selector/pen/VwomOyQ) |
|15|Tatsu| [CodePen](https://codepen.io/chindesu0207/pen/xxvRNYd) | 
|16|brucelee0629| [CodePen](https://codepen.io/xxhdklwi-the-decoder/pen/eYqBaKz?editors=0010) | 
|17|陳小廷| [CodePen](https://codepen.io/ting1124/pen/BaXQeVb) | 
|18|Lotte| [CodePen](https://codepen.io/hmkdoxuj-the-decoder/pen/rNXWgPj?editors=0010) | 
|19|jerry_66983| [CodePen](https://codepen.io/Barry-C/pen/bGXByXG) | 
|20|xcx100| [CodePen](https://codepen.io/c13026/pen/GRVNabe?editors=0012) | 
|21|Mike| [CodePen](https://codepen.io/mike2049/pen/eYqBawv?editors=0011) | 
|22|Hailey|[Codepen](https://codepen.io/sxbokfja-the-flexboxer/pen/wvVoLeK?editors=0010)|
|23|Jack|[Codepen](https://codepen.io/kxbhixte-the-sasster/pen/BaXQgrj?editors=0010)|
| 24 | Lobinda | [Codepen](https://codepen.io/Lobinda/pen/NWQbZYR)|
| 25 | yuyuhunter_0509 | [CodePen](https://codepen.io/KRcube/pen/oNKYrMO?editors=0011) |
| 26 | 毛巾 | [CodePen](https://codepen.io/bqdcjboa-the-solid/pen/VwomJVo) |
| 27 | JRz | [CodePen](https://codepen.io/JRZHENG/pen/LYwbwGP) |
|  28   |   610    | [CodePen](https://codepen.io/YI-LING-LIU/pen/xxvRvVN) | 
|  29   |   ab567ab5    | [CodePen](https://codepen.io/WanTzu-Chiang/pen/eYqBqEx?editors=0011) | 
|  30   |   ABow_Chen    | [CodePen](https://codepen.io/fred39392001/pen/QWedLvR) |
| 31 | GTR150 | [CodePen](https://codepen.io/Wer-Qwe/pen/XWvprgd) | 
| 32 | Mos | [CodePen](https://codepen.io/mos25399/pen/RwXKwYb?editors=0010) |
| 33 | Sonia | [CodePen](https://codepen.io/YUJOU/pen/ZEgLYYj?editors=0010) |
| 34 | 倫倫 | [CodePen](https://codepen.io/f5badapple/pen/BaXpyxm?editors=0011) |
| 35 | Dolce_墨 | [CodePen](https://codepen.io/DolceTseng1026/pen/jOgyPMR) |
| 36 | Ariel | [CodePen](https://codepen.io/ariel0510/pen/eYqgNEp?editors=0011) |
| 37 | ycl325.etheddie | [CodePen](https://codepen.io/wdvikfuz-the-selector/pen/zYgNGXw) |
|  38   |  Celine     | [CodePen](https://codepen.io/szuning/pen/NWQdNgJ) |
|  39  |  .tsz_ying | [CodePen](https://codepen.io/bekgnohe-the-selector/pen/OJKWNpo?editors=0011) | 
|  40   |  雪粒     | [CodePen](https://codepen.io/bzykdfhw-the-bashful/pen/rNXjLdJ) | 
|  41   |yuling       | [CodePen](https://codepen.io/yu-ling-peng/pen/yLmgJGP?editors=0011) |
|   42  |  JIA     | [CodePen](https://codepen.io/nzaicwlw-the-styleful/pen/NWQdRXy?editors=0010) | 
|  43  |   yuyeh_1212   | [CodePen](https://codepen.io/yuyeh1212/pen/wvVgJoe) |
|  44  |   zobody   | [CodePen](https://codepen.io/Zoe-Shih/pen/jOgyLvp?editors=0010) |
|  45  |   leoli35   | [CodePen](https://codepen.io/ziku10121/pen/xxvgPzJ) |
|  45  |   野鴿  | [CodePen](https://codepen.io/HoshinoSyouta/pen/vYogdBm) |
|  46  |   Ellie  | [CodePen](https://codepen.io/Ellie-Chiang/pen/abepVdV) |
| 47   | jing6408 | [CodePen](https://codepen.io/qqjuyjat-the-builder/pen/yLmgxjx) |
|  48   |  Emma   | [CodePen](https://codepen.io/Emma0919/pen/jOgyvKx) | 
|  49   |  Kaya   | [CodePen](https://codepen.io/kayaribi/pen/KKOaGbK) | 
|  50   |  charlottelee   | [CodePen](https://codepen.io/char849/pen/bGXgOxa) | 
|  51   |  david1819   | [CodePen](https://codepen.io/David-Lin-the-vuer/pen/wvVgZjq) | 
|  52   |   蘑菇星星    | [CodePen](https://codepen.io/brrrieon-the-vuer/pen/zYgZYwd?editors=0011) | 
|  53   |   chris    | [CodePen](https://codepen.io/chris-chen-the-selector/pen/OJKpPbR?editors=0012) |
|  54   |  CrystalLala     | [CodePen](https://codepen.io/crystallala/pen/JjgWGbz) | 
|  55  |  KUN.   | [CodePen](https://codepen.io/barry91205/pen/ExqWyGE?editors=1111) |
|  56  |  Rogan   | [CodePen](https://codepen.io/RoganHsu/pen/YzmZpvr) |
|57|陳睿睿|[CodePen](https://codepen.io/uwmrsusb-the-solid/pen/mdNWxGg?editors=0011)|
| 58 | Hedwig | [CodePen](https://codepen.io/adirehfz-the-encoder/pen/oNKZqKJ?editors=1011) | 
| 59  | ABOOS | [CodePen](https://codepen.io/guhungyin/pen/gOVmjPQ?editors=0012) | 
| 60 | Glen_69515 | [CodePen](https://codepen.io/glenyaochih/pen/OJKpejG?editors=1111) | 
| 61 | Ed Huang | [CodePen](https://codepen.io/yide1986/pen/KKOWjEg) | 
| 62 | yoishere | [CodePen](https://codepen.io/yoishere/pen/eYqWpQW) | 
| 63 | yu | [CodePen](https://codepen.io/yu_ch12/pen/bGXWpbo ) | 
| 64 | 嚼勁先生 | [CodePen](https://codepen.io/James520284/pen/bGXWpKj ) |
| 65    |   alec1203    | [CodePen](https://codepen.io/soloayaya/pen/mdNwerX?editors=1111) | 
| 66    |   xiang5141    | [CodePen](https://codepen.io/XIANG-XIANG/pen/NWQggaJ?editors=0011)| 
| 67    |   Joannehu    | [CodePen](https://codepen.io/nelbabkv-the-flexboxer/pen/RwXZxLE?editors=1011)| 
| 68 | Jim | [CodePen](https://codepen.io/JimChou/pen/eYqEMKY?editors=0010) |
|69|Avis|[CodePen](https://codepen.io/avisstian/pen/KKOveKW?editors=0011)|
|70|Seris|[CodePen](https://codepen.io/Dale-Chien/pen/qBeXgXv)|
| 71 | Ana | [CodePen](https://codepen.io/Ana-Wu/pen/ExqwLrw?editors=0011)|
| 72 | yaoling.liang | [CodePen](https://codepen.io/Yao-Ling-L-/pen/qBePMyp?editors=1011)|
| 73 | joylu0902 | [CodePen](https://codepen.io/joylu0902/pen/gOVXvZp?editors=1010)|
| 74 | iamcan | [CodePen](https://codepen.io/uhnxswdq-the-typescripter/pen/rNXKpoZ)|
|75|維妮|[CodePen](https://codepen.io/Maggy-Lin/pen/PoMBqwb)|
| 76 | Nocab Wang ( 培根 ) |[CodePen](https://codepen.io/PeihanWang/pen/eYqQPJv?editors=0011)|
|77|Amy(咂摳)|[CodePen](https://codepen.io/nnxucgmc-the-builder/pen/poMGYRe?editors=0010)| 
|78|Kim|[CodePen](https://codepen.io/kim0101__/pen/ZEgdxYg?editors=0011)| 
|79|Vivian|[CodePen](https://codepen.io/vivian-hsiao/pen/yLmmopV?editors=1111)| 
|80|ji3di|[CodePen](https://codepen.io/jwuuhtxh-the-builder/pen/emOZPvX?editors=0010)
|81|Satar| [CodePen](https://codepen.io/SatarKuo/pen/xbKgYBm?editors=0011) | 
|82|Chuang| [CodePen](https://codepen.io/uidoytjq-the-solid/pen/QwLqyem?editors=0010) | 
|83|Anna|[Codepen](https://codepen.io/Anna-Teng/pen/WbbJZjm?editors=1010)|
<!-- 可複製下方格式
|     |       | [CodePen]() | 
-->