---
# System prepended metadata

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

---

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

### 題目

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

問題
---

觀看下方程式碼，試著回答出最後 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 / 答案                                |
|:----------------:|:----------------------------------------------------------------------------:|
|    瑋慶#2480     |                [CodePen](https://codepen.io/htzwgoqt-the-looper/pen/BaxbZmP?editors=1111)                |
|    RJRS#9430     |                [CodePen](https://codepen.io/RJRS/pen/KKRJraY)                |
|    Ayre#0016     |      [Codepen](https://codepen.io/yichunlin09/pen/QWrYJmR?editors=0010)      |
|   Amberhh#2465   |        [Codepen](https://codepen.io/Amberhh/pen/abGXQKp?editors=1010)        |
|     威0#6919     |      [Codepen](https://codepen.io/n0918679182/pen/YzLBRve?editors=0011)      |
|   CloThEs#7837   |              [CodePen](https://codepen.io/CloThEsZ/pen/NWMoEMm)              |
| hsiung阿熊#4079  |             [Codepen](https://codepen.io/hsiungchi/pen/VwxgVdy)              |
|    Kimi#9564     |              [Codepen](https://codepen.io/kimihu91/pen/Vwdwgyb)              |
|  shinyhung#3825  |       [Codepen](https://codepen.io/sean_1215/pen/WNJPYKB?editors=1011)       |
|    Data#9297     |             [Codepen](https://codepen.io/kirakira72/pen/OJZdaEa)             |
|  Ron Liang#7277  |               [Codepen](https://codepen.io/ron-go/pen/poVGQQv)               |
|     YC#2522      |                [CodePen](https://codepen.io/YCLu/pen/poVQyEY)                |
|    薯餅#3581     |           [CodePen](https://codepen.io/ColdingPoTaTo/pen/QWrYJxX)            |
|    kuku#3118     |            [Cpdepen](https://codepen.io/mengting-ku/pen/abGXQQJ)             |
| xherobruce#6825  |            [CodePen](https://codepen.io/winwinbruce/pen/ZEowmwW)             |
|    albee#9121    |            [Codepen](https://codepen.io/albee-chang/pen/GRdzwLw)             |
|   AuroraC#6539   |        [codepen](https://codepen.io/AuroraC/pen/mdLvQYz?editors=0010)        |
|   Judy☻ #7874    |       [CodePen](https://codepen.io/hsiaohan/pen/WNJPYqe?editors=1011)        |
|    萱仔 #0781    |      [CodePen](https://codepen.io/ting-hsuan/pen/oNdmQRE?editors=1010)       |
|    芮綺 #5224    |        [CodePen](https://codepen.io/zhan70/pen/GRdzwzY?editors=0010)         |
|    Chung#5951    |        [CodePen](https://codepen.io/yuju16/pen/gOzqQVq?editors=0011)         |
| jackson204#6363  |             [CodePen](https://codepen.io/jackson204/pen/mdLvabQ)             |
|    無名#6427     |        [CodePen](https://codepen.io/Nomoney/pen/qBYgLBp?editors=0010)        |
|  Daisy Li#4231   |  [CodePen](https://codepen.io/lidairong-gmail-com/pen/zYjeyYw?editors=0012)  |
|    教練#6451     |           [CodePen](https://codepen.io/monkeybear721/pen/MWGLZYj)            |
|   yoshidc#0455   |              [CodePen](https://codepen.io/yoshiyyc/pen/ExLrGav)              |
|  JustinLiu#9699  |      [CodePen](https://codepen.io/justin0227/pen/KKRJbdV?editors=0011)       |
|    homer#1525    |              [CodePen](https://codepen.io/Buckhorn/pen/NWMoeNP)              |
|    Hazel.#6020    |      [CodePen](https://codepen.io/Hazelhsieh/pen/mdLvaVv?editors=0010)       |
|    Gill#9280     |       [CodePen](https://codepen.io/Gill-Chin/pen/WNJPLGv?editors=0011)       |
|   Winnie#1306    |    [Codepen](https://codepen.io/WinnieWuWinnie/pen/ZEowVLe?editors=0010)     |
|     m_m#5493     |             [Codepen](https://codepen.io/minnn7716/pen/RwyvEov)              |
|    母湯#7211     |      [Codepen](https://codepen.io/tommyshih77/pen/dyeawvg?editors=0011)      |
|    末次#0236     |             [Codepen](https://codepen.io/yunjulee/pen/ZEowVKK1)              |
|     VT#0895      |               [Codepen](https://codepen.io/vt197/pen/MWGLZmp)                |
|   法希娜#3206    | [Codepen](https://codepen.io/yiiserpf-the-encoder/pen/XWqOoge?editors=1012)  |
|    予予#9627     |              [Codepen](https://codepen.io/kiqzcraa/pen/jOxdXLr)              |
|  LHchien33#6232  |       [Codepen](https://codepen.io/lin_chien/pen/JjvxwyZ?editors=0010)       |
|    柔柔#1716     |              [Codepen](https://codepen.io/rouchen/pen/xxjMmPj)               |
|   Yishan#4902    | [Codepen](https://codepen.io/gdjrehhw-the-animator/pen/PoeVXjM?editors=0010) |
|    amy芳#1385    |             [Codepen](https://codepen.io/amy-chieng/pen/Vwxgqyg)             |
|    Velma#1693    |        [Codepen](https://codepen.io/Ze1225/pen/xxjMmjJ?editors=0010)         |
| 出事了阿伯#9923  |      [Codepen](https://codepen.io/BradpittLai/pen/wvjNRmK?editors=1010)      |
|    Rice#8043     |       [Codepen](https://codepen.io/riecball/pen/yLjZGqX?editors=0011)        |
|  mandylai#4055   |            [Codepen](https://codepen.io/mandy-lai-2/pen/jOxdXpy)             |
|    威爾#1694     |              [CodePen](https://codepen.io/WILL_Wu/pen/RwyvEYX)               |
|    Cliff#4606    |             [Codepen](https://codepen.io/Cliff_hex/pen/QWrYzVG)              |
|  hannahTW#2224   |             [Codepen](https://codepen.io/hangineer/pen/QWrYzmK)              |
|  RyanTsai#8906   |              [CodePen](https://codepen.io/linlaose/pen/ExLrGGp)              |
|  泰泰泰泰#0582   |        [CodePen](https://codepen.io/tesdzzph-the-bashful/pen/MWGLZRO)        |
|   楓之聲#6945    |             [Codepen](https://codepen.io/sshane258/pen/YzLBdMm)              |
|    Peng#9811     |              [Codepen](https://codepen.io/peng-027/pen/jOxdXgw)              |
|   心幻羽#0056    |            [Codepen](https://codepen.io/linglingsyu/pen/RwyvvPP)             |
|    Yiru#0236     |               [Codepen](https://codepen.io/pen/?editors=1011)                |
|    大衛#4869     |       [Codepen](https://codepen.io/exnsrpjc/pen/dyeaaox?editors=1010)        |
|    圈圈#4060     |   [Codepen](https://codepen.io/wjejfczn-the-bold/pen/xxjMQvX?editors=1111)   |
|   Jenny真#7532   |      [CodePen](https://codepen.io/wei-chen-wu/pen/xxjMMZB?editors=0010)      |
|    Kevin#6131    | [CodePen](https://codepen.io/xlqjezvc-the-encoder/pen/OJZddXb?editors=1011)  |
|    yawun#0042    |             [CodePen](https://codepen.io/monicalin/pen/vYjbbKO)              |
|   Shiimu#4307    |        [CodePen](https://codepen.io/len5464/pen/JjvxxNQ?editors=0010)        |
| SunnyCheng#4113  |             [CodePen](https://codepen.io/Sunny0509/pen/rNvPPmQ)              |
|  jimmyFang#9575  |       [CodePen](https://codepen.io/pohxiqqo/pen/VwxggzL?editors=0010)        |
|  Azi Hsieh#2861  |              [CodePen](https://codepen.io/AziHsieh/pen/MWGLZxO)              |
|    Baozi#2042    |             [CodePen](https://codepen.io/lillianyu/pen/WNJPPZd)              |
|    艸良#2846     |            [CodePen](https://codepen.io/momoninainai/pen/bGMzOjp)            |
|   WEI_RIO#9342   |        [Codepen](https://codepen.io/wei_wu/pen/mdLvvGR?editors=0011)         |
|  beta lin#1445   |              [CodePen](https://codepen.io/linbeta/pen/XWqOOxw)               |
|   hungya#0773    |       [Codepen](https://codepen.io/hungya777/pen/zYjeejQ?editors=0011)       |
|  Potatolee#7749  |      [Codepen](https://codepen.io/potatoleee/pen/poVGGOO?editors=0010)       |
|  Hironaka#7367   |     [Codepen](https://codepen.io/Hironaka0815/pen/WNJPPgz?editors=0010)      |
|   cotton#7163    |        [Codepen](https://codepen.io/cottonT/pen/RwyvvqK?editors=0010)        |
|   PayRoom#8328   |             [CodePen](https://codepen.io/water38198/pen/QWrYYYB)             |
|     cbs#9007     |               [Codepen](https://codepen.io/wasdjk/pen/bGMzzKa)               |
|    Greta#0837    |              [CodePen](https://codepen.io/gretali/pen/Jjvxxzd)               |
|    Hilda#7085    |         [CodePen](https://codepen.io/vwquikad-the-vuer/pen/dyeaaEp)          |
|  suihsilan#9485  |       [CodePen](https://codepen.io/suihsilan/pen/JjvxzPG?editors=0010)       |
| William Lai#0196 |             [CodePen](https://codepen.io/lai-weihan/pen/ExLrMaa)             |
| 0xWilliam #8796  |     [CodePen](https://codepen.io/0xWilliam0322/pen/wvjNOzx?editors=0010)     |
|     Fan#3405     |               [CodePen](https://codepen.io/Fan123/pen/rNvPRQL)               |
|    Rena#6249     |            [Codepen](https://codepen.io/aureate0116/pen/YzLBgda)             |
|    Ohno#1144     |       [Codepen](https://codepen.io/mmaa7850/pen/bGMzZJy?editors=0011)        |
|    yumy#1940     |             [Codepen](https://codepen.io/yumy_yamg/pen/KKRJYKd)              |
|    azami#5986    |               [Codepen](https://codepen.io/azami/pen/zYjeXrz)                |
|     YI#0863      |        [Codepen](https://codepen.io/YI0305/pen/oNdmOWP?editors=0010)         |
|   肉桂卷#0625    |        [Codepen](https://codepen.io/ginnlee/pen/bGMzJxp?editors=0011)        |
|  banazita#5143   |       [CodePen](https://codepen.io/banazita/pen/zYjerMJ?editors=1112)        |
|   Barret#1119    |      [CodePen](https://codepen.io/barret0720/pen/KKRJLVy?editors=0010)       |
|  pss940909#8650  |       [CodePen](https://codepen.io/pss940909/pen/BaxMeZR?editors=0010)       |
|    雷雷#7844     |      [CodePen](https://codepen.io/lei-yi-jie/pen/dyeaEEX?editors=0010)       |
|     Lou#0085     |        [CodePen](https://codepen.io/Lusie_H/pen/OJZdewa?editors=1010)        |
|   郭芙蘭#6374    |       [CodePen](https://codepen.io/flora_Kuo/pen/zYjegqz?editors=1111)       |
|     Rr#2215      |            [Codepen](https://codepen.io/rufangcheng/pen/PoeVrgX)             |
| 勁辣雞腿寶#5817  |       [CodePen](https://codepen.io/orz311013/pen/JjvxgEL?editors=0011)       |
|    k.sin#3115    |        [CodePen](https://codepen.io/sin588/pen/wvjNVya?editors=0010)         |
|    juri#5114     |       [CodePen](https://codepen.io/jurry126/pen/GRdzVwK?editors=0010)        |
|   我是泇吟#5189   |       [CodePen](https://codepen.io/kljuqbxs/pen/PoeVMVq)                     |
|   AkiHico#9239   |       [CodePen](https://codepen.io/akihico/pen/YzLgKwz?editors=1111)                     |
|   竹輪#3335   |       [CodePen](https://codepen.io/chikuwa0120/pen/mdLobWP)                     |
|Mylène#2481|[Codepen](https://codepen.io/hamajibashi/pen/NWMJKEy)|
|IreneY#0086|[codepen](https://codepen.io/HalfPlannedJourney/pen/ExLMYBY)|
|Ruby Chen#7452|[codepen](https://codepen.io/ruby92429/pen/VwxRZOK?editors=1010)|
|jamesccc#6244|[codepen](https://codepen.io/nimwnynv-the-sasster/pen/zYjbYYO?editors=1010)|
|jacky010080#0880|[CodePen](https://codepen.io/Yen-Jung-Chen/pen/gOzEYVG?editors=0011)|
|SASIMI#5099|[CodePen](https://codepen.io/sashimi1327/pen/JjvaJJe)|
|JackC#0411|[CodePen](https://codepen.io/key0329/pen/GRdeRyd)|
| 黃士桓#7654 | [codePen](https://codepen.io/shr-huan-huang/pen/mdLodKL)| 
| Clara#1275 | [codePen](https://codepen.io/bsupixqu/pen/WNJmbwb?editors=0010)|
| 哈囉哈#5196 | [CodePen](https://codepen.io/bill0841205/pen/jOxJPXK)|
|黑松胖#4836|[Codepen](https://codepen.io/yi-chien-hsieh/pen/MWGxwEB?editors=0010)|
|Mia小福#4473|[Codepen](https://codepen.io/a0950271/pen/zYjbGQg)|
|Vera#5592|[CodePen](https://codepen.io/skvera/pen/KKREddb)|
|王懷英#7271|[CodePen](https://codepen.io/huaiying/pen/RwydWPg)|
|  yen#57575|[CodePen](https://codepen.io/TZU-HUANG-YEN/pen/oNdPgqY)|
|yuling#1634|[codepen](https://codepen.io/igzdflpu/pen/wvjOKyQ)|
|lee#5462|[codepen](https://codepen.io/barrylee85/pen/xxjBwMd?editors=0011)|
|kenki100#0068|[codepen](https://codepen.io/ken100/pen/Baxbovv)|
|FiReBrO#0557|[codepen](https://codepen.io/firebro42/pen/abGMdbw?editors=1111)|
|mou#2215|[codepen](https://codepen.io/shihchiehlan/pen/oNdVbgE?editors=0010)|
|鑫鑫#4346|[CodePen](https://codepen.io/Neil1024/pen/JjvzGRM?editors=0010)|
|Benson#6763|[Codepen](https://codepen.io/kumashow/pen/ZEoPQeL)|
| 小白#2406 | [CodePen](https://codepen.io/gracewhite/pen/vYjPLBa) || 小白#2406 | [CodePen](https://codepen.io/gracewhite/pen/vYjPLBa) |
|Sentiments|[codepen](https://codepen.io/Sentiments/pen/OJZqRRY?editors=0011)
|Loran#11105|[codepen](https://codepen.io/loranlin/pen/yLjwOVv?editors=0011)
|RayChen#6088|[codepen](https://codepen.io/raychen1996/pen/eYrXWrQ)
|yoyo#1003|[codepen](https://codepen.io/crpbugqy-the-typescripter/pen/RwydVOo)
|CofCat#9226|[CodePen](https://codepen.io/cofcat456/pen/NWMJgNB?editors=1011)|
|魚子醬#5220|[CodePen](https://codepen.io/haihsuan/pen/wvjOepE?editors=1111)|
|Ringo#7583|[CodePen](https://codepen.io/ringolai1988/pen/poVYrRy?editors=0010)|
|PoWei#8484|[CodePen](https://codepen.io/harrison-wei-lai/pen/OJZqjYV)|
|poetry1933#2713|[CodePen](https://codepen.io/poetry1932/pen/dyerZXO?editors=0011)|
|Ryan Chiang#6649|[Codepen](https://codepen.io/ryanchiang/pen/ZEoPawG?editors=0012)|
|Judy Wei#6103|[Codepen](https://codepen.io/Judy0718/pen/eYrXydB)|
|Yuna Huang#2692|[Codepen](https://codepen.io/Yuna1002/pen/MWGxrOJ?editors=0011)|
|Cynthia1111#1822|[Codepen](https://codepen.io/Cynthia1111/pen/rNvRJvQ?editors=0010)|
|     YU #0618     | [Codepen](https://codepen.io/yoken_/pen/wvjOjgL)       |
|三隻小貓#1905|[Codepen](https://codepen.io/bagelover/pen/abGMKpQ?editors=1010)|
|君Jyun#0147|[codepen](https://codepen.io/Okaybeok/pen/poVYZvx?editors=0011)|
|kancheng#3915|[CodePen](https://codepen.io/kancheng/pen/yLjwRvK?editors=1111)|
|Jhen#4563|[CodePen](https://codepen.io/su-jhen/pen/oNdVaQg)|
|阿富#0389|[CodePen](https://codepen.io/spring40747/pen/ZEoPVwy?editors=1111)|
|Tami#6742|[CodePen](https://codepen.io/wqsdqbjn-the-vuer/pen/ExLMrWd)|
|KC_8685#9343|[CodePen](https://codepen.io/cathy7411/pen/xxjMQJq)|
|CJ07#0176|[codepen](https://codepen.io/cjtseng07/pen/dyerrmv?editors=0010)|
|阿修#9176|[codepen](https://codepen.io/xiu-tong/pen/bGMZZxQ)|
|Shalina123#3090|[codepen](https://codepen.io/shalina123/pen/eYrXXXN)|
|Nini Chen#5790|[codepen](https://codepen.io/ninistyle/pen/dyerLOm?editors=0010)|
|Silvialu#4521|[codepen](https://codepen.io/Silvia091640/pen/KKREYmd)|
|Eileen#6454|[codepen](https://codepen.io/Eileen-io/pen/ZEoPNvR)|
|Chloe#5422|[CodePen](https://codepen.io/Ironchloe/pen/eYrXajL?editors=0010)|
|蓁心#6229|[CodePen](https://codepen.io/tlorfrnl-the-typescripter/pen/dyerBWO?editors=0010)|
|hayaka #4579|[CodePen](https://codepen.io/CocoCat/pen/ExLMqYN?editors=0010)|
|XYY#2630|[CodePen](https://codepen.io/Xing-Ying/pen/poVYMOE)|
|ling chang#1024|[CodePen](https://codepen.io/ling-chang/pen/NWMJQJx)|
|Cookie SSS#6991|[CodePen](https://codepen.io/sqhjikpa-the-selector/pen/LYmvPKE?editors=0010)|
|H.L.C#2152|[CodePen](https://codepen.io/hsin-liang/pen/wvjZvwr)|
|艾芮絲#6060|[CodePen](https://codepen.io/wangyingju/pen/poVBovO)|
|RuoAn#7124|[CodePen](https://codepen.io/LiauRuoAn/pen/VwxNwKK?editors=0010)|
bingsu#2362|[Codepen](https://codepen.io/pmyfr/pen/bGMJVzQ?editors=0010)|
|黑白兔#0684|[CodePen](https://codepen.io/johnny329/pen/qBYwZVv)|
|KatyChiang#1554|[CodePen](https://codepen.io/Kai0819/pen/ExLJyYz?editors=1011)|
|健育#5748|[CodePen](https://codepen.io/c1317156/pen/mdLgBWb)|
|Shuo#1596|[CodePen](https://codepen.io/chiangchungshuo/pen/poVYNNp)|
|hua#9099|[Codepen](https://codepen.io/LHua/pen/xxjepoW?editors=0011)|
|sophiee#7015|[Codepen](https://codepen.io/sophiee2727/pen/YzLMaNG?editors=1010)|
|LQQ#4187|[Codepen](https://codepen.io/morefoodq/pen/vYjMzYW)|
|MJ_Eddie#5258|[CodePen](https://codepen.io/nick-lin/pen/WNJWWbP)|
|軟綿綿 (๑•ᴗ•๑) ♡#3627|[CodePen](https://codepen.io/Connie-Chien/pen/JjvVqWa?editors=0010)|
|yaru#6308|[CodePen](https://codepen.io/lszaietc/pen/bGMJyPW?editors=0011)|
popcorn_3q#9893|[CodePen](https://codepen.io/arnyrpqt-the-sasster/pen/wvjZLZx?editors=0010)
|charlottelee849#0366|[CodePen](https://codepen.io/charlotte-lee/pen/LYmvwpW?editors=1111)|
|jin.huang#4666|[CodePen](https://codepen.io/haha1196/pen/QWrREmx?editors=0010)|
|Lucie#3831|[Codepen](https://codepen.io/bisespei/pen/OJZYRWo)|
|Evelyne#7323|[Codepen](https://codepen.io/Evelynep/pen/oNdRKLB)|
|Paul#7426|[CodePen](https://codepen.io/paul-1997/pen/KKROzVP?editors=0010)|
|L0F0#8733|[CodePen](https://codepen.io/l0f0/pen/RwyXRKb?editors=0011)|
|mei#8421|[CodePen](https://codepen.io/Shila-Chen/pen/NWzKwLb?editors=0011)|
|How#5806|[CodePen](https://codepen.io/howtobefine/pen/poKoWXv)|
|DoraHuang#8223|[CodePen](https://codepen.io/mwebwvuq-the-flexboxer/pen/GRGRdGj) |
|christina#6185|[Codepen](https://codepen.io/chrisc0210/pen/VwdwRbd)|
|Jamie Wu#9345|[Codepen](https://codepen.io/Wu220103/pen/oNygxbb)|
|阿蘇#8531|[Codepen](https://codepen.io/susu3131/pen/GRGgqEw)|
|Cream#3449|[Codepen](https://codepen.io/frxdwbbi-the-sasster/pen/BaVyLaN?editors=1111)|
|安o#2448|[Codepen](https://codepen.io/JzhenAn/pen/gOKaJdL?editors=1111)|
|Sonia Wu#7154|[Codepen](https://codepen.io/YUJOU/pen/bGKEbVe)|
|Karen Chan#4625|[Codepen](https://codepen.io/YUJOU/pen/bGKEbVe)|
|meimei#9524|[Codepen](https://codepen.io/isnrudav/pen/bGKrpww)|