---
# System prepended metadata

title: "\U0001F3C5 Day 7 - 邏輯運算子"
tags: [JS 直播班 - 2022 秋季班]

---

---
tags: JS 直播班 - 2022 秋季班
---
# 🏅 Day 7 - 邏輯運算子

### 題目
請看完此篇文章的「[邏輯運算子](https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Guide/Expressions_and_Operators#%E9%82%8F%E8%BC%AF%E9%81%8B%E7%AE%97%E5%AD%90)」部分，
並試著回答以下程式碼 a、b、c、d、e 的值。

問題
---
```javascript=
let a = true || false;
let b = 1 && 0;
let c = (4 > 3) && (2 >= 2);
let d = !(4 > 3);
let e = true && (1 > 2);
```


## 回報流程

將答案寫在 CodePen 並複製 CodePen 連結貼至底下回報就算完成了喔! 
解答位置請參考下圖（需打開程式碼的部分觀看）

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

<!-- 解答：  

a: true
b: 0
c: true
d: false
e: false
-->




回報區
---


|   Discord    |                    CodePen / 答案                      |
|:----------:|:-------------------------------------------------------:|
| 瑋慶#2480 | [CodePen](https://codepen.io/htzwgoqt-the-looper/pen/zYjyyzj?editors=1111)|
| 嗶嗶羊#8042 | [CodePen](https://codepen.io/mazizlte-the-typescripter/pen/LYmXawX?editors=0010)|
| Vera#5592 | [CodePen](https://codepen.io/skvera/pen/abGQBXp)|
| CloThEs#7837 | [CodePen](https://codepen.io/CloThEsZ/pen/wvjQYjE)|
| 哈囉哈#5196 | [CodePen](https://codepen.io/bill0841205/pen/NWMEOOe?editors=1111)|
|KC_8685#9343| [CodePen](https://codepen.io/cathy7411/pen/poVQxPG)|
|Daisy Li#4231| [CodePen](https://codepen.io/lidairong-gmail-com/pen/bGMQmmQ?editors=0012)|
|azami#5986|[Codepen](https://codepen.io/azami/pen/Rwyqeex)|
|Clara#1275|[Codepen](https://codepen.io/bsupixqu/pen/xxjQyeg?editors=0010)|
|芮綺#5224|[Codepen](https://codepen.io/zhan70/pen/vYjQVvp?editors=0010)|
|AuroraC#6539|[codepen](https://codepen.io/AuroraC/pen/yLjQRWL?editors=0010)|
|VT#0895 | [Codepen](https://codepen.io/vt197/pen/BaxGqEG)|
|yumy#1940|[codepen](https://codepen.io/yumy_yamg/pen/OJZaBYB)|
|albee#9121|[Codepen](https://codepen.io/albee-chang/pen/qBYQJzj)|
|KatyChiang#1554|[Codepen](https://codepen.io/Kai0819/pen/wvjQYOR?editors=1011)|
|無名#6427|[Codepen](https://codepen.io/Nomoney/pen/LYmXXPj?editors=0010)|
|末次#0236|[Codepen](https://codepen.io/yunjulee/pen/YzLRJoe)|
|kuku#3118|[Codepen](https://codepen.io/mengting-ku/pen/dyeQQPJ?editors=0012)
|Kimi#9564|[Codepen](https://codepen.io/kimihu91/pen/BaxGGyM)
|CofCat#9226|[Codepen](https://codepen.io/cofcat456/pen/dyeQQoJ)|
|大衛#4869|[Codepen](https://codepen.io/exnsrpjc/pen/OJZaaLa?editors=1011)|
|Ohno#1144|[Codepen](https://codepen.io/mmaa7850/pen/mdLQQeG?editors=1111)|
|薯餅#3581|[Codepen](https://codepen.io/ColdingPoTaTo/pen/yLjQQVe)|
|JackC#0411|[Codepen](https://codepen.io/key0329/pen/WNJYYoe)|
|Hazel.#6020|[Codepen](https://codepen.io/Hazelhsieh/pen/abGQRQm)|
|Winnie#1306|[Codepen](https://codepen.io/WinnieWuWinnie/pen/ExLOOZX?editors=0012)|
|Peng#9811|[Codepen](https://codepen.io/peng-027/pen/vYjQQgz?editors=1010)|
|WEI_RIO#9342|[codepen](https://codepen.io/wei_wu/pen/rNvQQMW?editors=1011)|
|魚子醬#5220|[CodePen](https://codepen.io/haihsuan/pen/VwxVVbd)|
|威0#6919|[CodePen](https://codepen.io/n0918679182/pen/zYjMMzz?editors=0010)|
|予予#9627|[CodePen](https://codepen.io/kiqzcraa/pen/ExLOOjZ?editors=0010)|
|Wei#2330|[Codepen](https://codepen.io/ixfjxrbo-the-typescripter/pen/KKRrryV)|
|心幻羽#0056|[CodePen](https://codepen.io/linglingsyu/pen/BaxGGZg)|
|yoshidc#0455|[CodePen](https://codepen.io/yoshiyyc/pen/vYjQQeV)|
|jackson204#6363|[CodePen](https://codepen.io/jackson204/pen/KKRrrQz)|
|JustinLiu#9699|[CodePen](https://codepen.io/justin0227/pen/Poexxer?editors=0011)|
|Gill#9280|[CodePen](https://codepen.io/Gill-Chin/pen/JjveGqo)|
|楓之聲#6945|[Codepen](https://codepen.io/sshane258/pen/xxjQQzY)|
| LHchien33#6232 |[Codepen](https://codepen.io/lin_chien/pen/RwyqqJv?editors=0010)|
| 母湯#7211 |[Codepen](https://codepen.io/tommyshih77/pen/abGaeqb?editors=0010)|
|IreneY#0086|[codepen](https://codepen.io/HalfPlannedJourney/pen/jOxQQQr)|
|Hilda#7085|[codepen](https://codepen.io/vwquikad-the-vuer/pen/MWGzzzm)|
| YC#2522 |[CodePen](https://codepen.io/YCLu/pen/poVQyEY) |
| hsiung阿熊#4079 |[CodePen](https://codepen.io/hsiungchi/pen/wvjQQbK) |
|yawun#0042|[CodePen](https://codepen.io/monicalin/pen/Rwyqqmm)|
|cotton#7163|[CodePen](https://codepen.io/cottonT/pen/BaxGGgN?editors=1010)|
|Ayre#0016|[Codepen](https://codepen.io/yichunlin09/pen/eYrQbOe?editors=0010)|
|勁辣雞腿寶#5817|[Codepen](https://codepen.io/orz311013/pen/VwxVqwN?editors=0010)|
|hungya#0773|[Codepen](https://codepen.io/hungya777/pen/dyeQwYL?editors=0010)|
|banazita#5143|[CodePen](https://codepen.io/banazita/pen/qBYQJLr?editors=1111)|
|出事了阿伯#9923|[CodePen](https://codepen.io/BradpittLai/pen/BaxGGdg?editors=1010)|
|泰泰泰泰#0582|[CodePen](https://codepen.io/tesdzzph-the-bashful/pen/poVQqbr?editors=0011)|
hannahTW#2224 | [CodePen](https://codepen.io/hangineer/pen/yLjQGVP?editors=1012)|
| 威爾#1694            | [CodePen](https://codepen.io/WILL_Wu/pen/abGQPBR)                                |
| ------------------- |
| 圈圈#4060            | [Codepen](https://codepen.io/wjejfczn-the-bold/pen/qBYQJvm?editors=1111)         |
| 教練#6451            | [CodePen](https://codepen.io/monkeybear721/pen/gOzQZga)                          |
| shinyhung#3825       | [CodePen](https://codepen.io/sean_1215/pen/oNdQJZR?editors=1011)                 |
| RyanTsai#8906        | [CodePen](https://codepen.io/linlaose/pen/ZEomVXo)                               |
| Greta#0837           | [Codepen](https://codepen.io/gretali/pen/PoexXQG)                                |
| Fan#3405             | [Codepen](https://codepen.io/Fan123/pen/dyeQaoM)                                 |
| Benson#6763          | [Codepen](https://codepen.io/kumashow/pen/NWMEobz)                               |
| 艸良#2846            | [Codepen](https://codepen.io/momoninainai/pen/xxjQMgG)                           |
| 黑白兔#0684          | [Codepen](https://codepen.io/johnny329/pen/KKRrJmb)                              |
| AmberWang#2504       | [Codepen](https://codepen.io/dmpjhhtt-the-typescripter/pen/JjvexOX?editors=0010) |
| 法希娜#3206          | [Codepen](https://codepen.io/yiiserpf-the-encoder/pen/MWGzLEd?editors=1111)      |
| William Lai#0196     | [Codepen](https://codepen.io/lai-weihan/pen/gOzQqxo)                             |
| Arista#5802          | [Codepen](https://codepen.io/arista-hsieh/pen/KKRrJBY)                           |
| Cliff#4606           | [Codepen](https://codepen.io/Cliff_hex/pen/PoexVGO)                              |
| Hironaka#7367        | [Codepen](https://codepen.io/Hironaka0815/pen/GRdwzBQ?editors=0010)              |
| Chung#5951           | [Codepen](https://codepen.io/yuju16/pen/poVQGQX)                                 |
| jamesccc#6244        | [Codepen](https://codepen.io/nimwnynv-the-sasster/pen/bGMQZGZ)                   |
| homer#1525           | [Codepen](https://codepen.io/Buckhorn/pen/PoexXab)                               |
| 柔柔#1716            | [Codepen](https://codepen.io/rouchen/pen/jOxQJrO?editors=1010)                   |
| 0xWIlliam #8796      | [CodePen](https://codepen.io/0xWilliam0322/pen/OJZaqNd)                          |
| YI#0863              | [CodePen](https://codepen.io/YI0305/pen/poVQQON?editors=0012)                    |
| Eileen#6454          | [CodePen](https://codepen.io/Eileen-io/pen/KKRrEdK)                              |
| 我是泇吟#5189        | [CodePen](https://codepen.io/kljuqbxs/pen/MWGzxOj)                               |
| jin.huang#4666       | [CodePen](https://codepen.io/haha1196/pen/dyeQreq?editors=1010)                  |
| PayRoom#8328         | [CodePen](https://codepen.io/water38198/pen/WNJYmyQ)                             |
| Potatolee#7749       | [CodePen](https://codepen.io/potatoleee/pen/MWGzxGb?editors=0010)                |
| 溡月#2553            | [CodePen](https://codepen.io/winterwinterpu/pen/ZEomPPy)                         |
| Yuna Huang#2692      | [CodePen](https://codepen.io/Yuna1002/pen/XWqyGGz?editors=0010)                  |
| Shalina123#3090      | [CodePen](https://codepen.io/shalina123/pen/eYrQXXE)                             |
| Yiru#0236            | [Codepen](https://codepen.io/pen/?editors=0012)                                  |
| Baozi#2042           | [Codepen](https://codepen.io/lillianyu/pen/poVQYMe)                              |
| AkiHico#9239         | [Codepen](https://codepen.io/akihico/pen/wvjQOYB?editors=0010)                   |
| amy芳#1385           | [Codepen](https://codepen.io/amy-chieng/pen/JjveVRw)                             |
| 萱仔#0781            | [Codepen](https://codepen.io/ting-hsuan/pen/qBYQwVw)                             |
| Lucie#3831           | [Codepen](https://codepen.io/bisespei/pen/OJZaYVx)                               |
| ssozr#4680           | [codepen](https://codepen.io/ssozr/pen/PoexvbO?editors=0011)                     |
| 雷雷#7844            | [codepen](https://codepen.io/lei-yi-jie/pen/MWGzdjx?editors=0010)                |
| Rena#6249            | [Codepen](https://codepen.io/aureate0116/pen/KKRrLmb?editors=1012)               |
| beta lin#1445        | [CodePen](https://codepen.io/linbeta/pen/wvjQbyx)                                |
| 小白#2406            | [CodePen](https://codepen.io/gracewhite/pen/yLjQQoJ)                             |
| mandylai#4055        | [CodePen](https://codepen.io/mandy-lai-2/pen/ExLOzdK)                            |
| suihsilan#9485       | [CodePen](https://codepen.io/suihsilan/pen/vYjQqOj?editors=0010)                 |
| poetry1933#2713      | [CodePen](https://codepen.io/poetry1932/pen/zYjMVpz)                             |
| Jenny真#7532         | [CodePen](https://codepen.io/wei-chen-wu/pen/QWrJXXK?editors=0010)               |
| Amberhh#2465         | [Codepen](https://codepen.io/Amberhh/pen/GRdwwxL)                                |
| 鑫鑫#4346            | [CodePen](https://codepen.io/Neil1024/pen/ExLOqvd?editors=0011)                  |
| LQQ#4187             | [CodePen](https://codepen.io/morefoodq/pen/Jjvegrz)                              |
| Mia小福#4473         | [CodePen](https://codepen.io/a0950271/pen/poVqzbQ)                               |
| yoyo#1003            | [CodePen](https://codepen.io/crpbugqy-the-typescripter/pen/zYjyOKg)              |
| jimmyFang#9575       | [CodePen](https://codepen.io/pohxiqqo/pen/PoeXYpO?editors=0010)                  |
| SASIMI#5099          | [codepen](https://codepen.io/sashimi1327/pen/MWGqoWm)                            |
| 黃士桓#7654          | [codePen](https://codepen.io/shr-huan-huang/pen/PoeXYxa)                         |
| jacky010080#0880     | [CodePen](https://codepen.io/Yen-Jung-Chen/pen/poVqzOm?editors=0010)             |
| hayaka#4579          | [CodePen](https://codepen.io/CocoCat/pen/jOxXOEg?editors=0011)                   |
| shio#1414            | [CodePen](https://codepen.io/shioyen/pen/OJZrJLB?editors=1111)                   |
| 蓁心#6229            | [CodePen](https://codepen.io/tlorfrnl-the-typescripter/pen/VwxqwMd?editors=1010) |
| 健育#5748            | [CodePen](https://codepen.io/c1317156/pen/NWMePPr)                               |
| Sentiments#          | [codepen](https://codepen.io/Sentiments/pen/Jjvwobe?editors=0010)                |
| Silvialu#4521        | [codepen](https://codepen.io/Silvia091640/pen/gOzZber)                           |
| VK#6657              | [codepen](https://codepen.io/VKCS/pen/yLjGyRj)                                   |
| Data#9297            | [codepen](https://codepen.io/kirakira72/pen/Vwxqwzd)                             |
| cbs#9007             | [CodePen](https://codepen.io/wasdjk/pen/wvjRabQ)                                 |
| 肉桂卷#0625          | [CodePen](https://codepen.io/ginnlee/pen/KKRrYQZ?editors=0011)                   |
| k.sin#3115           | [CodePen](https://codepen.io/sin588/pen/oNdJjmP?editors=0011)                    |
| Loran#1105           | [CodePen](https://codepen.io/loranlin/pen/KKRbdGM?editors=1010)                  |
| 竹輪#3335            | [CodePen](https://codepen.io/chikuwa0120/pen/dyewGpL)                            |
| Judy Wei#6103        | [CodePen](https://codepen.io/Judy0718/pen/gOzZPLp)                               |
| Sonia Wu#7154        | [CodePen](https://codepen.io/YUJOU/pen/NWMexgd)                                  |
| Ruby Chen#7452       | [CodePen](https://codepen.io/ruby92429/pen/YzLdwgy?editors=1010)                 |
| 艾芮絲#6060          | [CodePen](https://codepen.io/wangyingju/pen/OJZrNyj)                             |
| XYY#2630             | [CodePen](https://codepen.io/Xing-Ying/pen/abGPNve)                              |
| Ringo#7583           | [CodePen](https://codepen.io/ringolai1988/pen/wvjRGoy?editors=1010)              |
| ling chang#1024      | [CodePen](https://codepen.io/ling-chang/pen/MWGZeya)                             |
| RJRS#9430            | [CodePen](https://codepen.io/RJRS/pen/OJZrXgq)                                   |
| Rice#8043            | [CodePen](https://codepen.io/riecball/pen/XWqoagq?editors=1011)                  |
| Judy☻ #7874          | [CodePen](https://codepen.io/hsiaohan/pen/XWqoazY?editors=1011)                  |
| kenki100#0068        | [CodePen](https://codepen.io/ken100/pen/bGMOrQW)                                 |
| Velama#1693          | [CodePen](https://codepen.io/Ze1225/pen/ExLGwaz?editors=0010)                    |
| Yishan#4902          | [CodePen](https://codepen.io/gdjrehhw-the-animator/pen/yLjGzNx?editors=0010)     |
| m_m#5494             | [Codepen](https://codepen.io/minnn7716/pen/qBYLPKN)                              |
| Iris_#8462           | [Codepen](https://codepen.io/irissamy/pen/VwxqrwM?editors=1111)                  |
| Azi Hsieh#2861       | [CodePen](https://codepen.io/AziHsieh/pen/ExLGoyL)                               |
| Ron Liang#7277       | [CodePen](https://codepen.io/ron-go/pen/mdLapBd)                                 |
| Curtis#4780          | [CodePen](https://codepen.io/curtislin/pen/wvjRpbd?editors=0010)                 |
| kevin#6131           | [CodePen](https://codepen.io/xlqjezvc-the-encoder/pen/wvjRyPm?editors=1011)      |
| Shiimu#4307          | [CodePen](https://codepen.io/len5464/pen/VwxqXKy)                                |
| SunnyCheng#4113      | [CodePen](https://codepen.io/Sunny0509/pen/abGPYxE?editors=1111)                 |
| juri#5114            | [CodePen](https://codepen.io/jurry126/pen/dyewmBg?editors=0010)                  |
| pss940909#8650       | [CodePen](https://codepen.io/pss940909/pen/QWrzrvd?editors=1010)                 |
| Barret#1119          | [CodePen](https://codepen.io/barret0720/pen/VwxqBLM)                             |
| 王懷英#7271          | [CodePen](https://codepen.io/huaiying/pen/bGMOmKK)                               |
| mou#2215             | [CodePen](https://codepen.io/shihchiehlan/pen/abGPqqz)                           |
| 阿風#6890            | [CodePen](https://codepen.io/Afonguwu/pen/VwxqVYz)                               |
| 富#0389              | [CodePen](https://codepen.io/spring40747/pen/KKRbbdN)                            |
| 郭芙蘭#6374          | [CodePen](https://codepen.io/flora_Kuo/pen/XWqooPB?editors=1011)                 |
| charlottelee849#0366 | [CodePen](https://codepen.io/charlotte-lee/pen/YzLddgP?editors=0011)             |
| VickyHuang#2918      | [CodePen](https://codepen.io/HSUNA/pen/LYmMqxV?editors=0010)                     |
| Mylène#2481          | [Codepen](https://codepen.io/hamajibashi/pen/qBYLgbW)                            |
| yuling#1634          | [codepen](https://codepen.io/igzdflpu/pen/MWGZxOK)                               |
| RuoAn#7124           | [codepen](https://codepen.io/LiauRuoAn/pen/YzLdMBz?editors=0010)                 |
| RosaC#4286           | [codepen](https://codepen.io/RosarC/pen/PoeVwvz?editors=0011)                    |
| 大大#5164            | [codepen](https://codepen.io/gzonothk-the-looper/pen/oNdmXaL?editors=1111)       |
| 維尼#2200            | [codepen](https://codepen.io/gxvzprtq-the-selector/pen/YzLByaL?editors=0010)     |
| Milvii#7341          | [Codepen](https://codepen.io/Monstertroll/pen/JjvxYar)                           |
| FiReBrO#0557         | [Codepen](https://codepen.io/firebro42/pen/xxjMOJr)                              |
| Ting#8449            | [Codepen](https://codepen.io/liara/pen/XWqOjWg)                                  |
| 毛毛雨#2242          | [Codepen](https://codepen.io/em-lee/pen/NWMoaRa)                                 |
| 黑松胖#4836          | [Codepen](https://codepen.io/yi-chien-hsieh/pen/eYrxGpL?editors=0011)            |
| lee#05462            | [Codepen](https://codepen.io/barrylee85/pen/MWGLOKN?editors=0011)                |
| Evelyne#7323         | [Codepen](https://codepen.io/Evelynep/pen/vYjbWGe)                               |
| Cream#3449           | [Codepen](https://codepen.io/frxdwbbi-the-sasster/pen/NWMogQW?editors=1011)      |
| xherobruce#6825      | [Codepen](https://codepen.io/winwinbruce/pen/eYrxPLX)                            |
| PoWei#8484           | [Codepen](https://codepen.io/harrison-wei-lai/pen/dyeaLbe)                       |
| Rr#2215                     |     [Codepen](https://codepen.io/rufangcheng/pen/JjvxQNR)                                                                             |
| 阿修#9176            | [Codepen](https://codepen.io/xiu-tong/pen/zYjeQwe)                               |
| Shuo#1596                     |     [Codepen](https://codepen.io/chiangchungshuo/pen/zYjbqbV) |
|annanna#6011|[Codepen](https://codepen.io/annaprosty/pen/ExLMjQJ)|
|Ryan Chiang#6649|[Codepen](https://codepen.io/ryanchiang/pen/LYmayGv?editors=0012)|
|Cynthia1111#1822|[Codepen](https://codepen.io/Cynthia1111/pen/abGMqWP?editors=0010)|
|     YU #0618     | [Codepen](https://codepen.io/yoken_/pen/Baxbrev)       |
|Tami#6742|[CodePen](https://codepen.io/wqsdqbjn-the-vuer/pen/xxjBMXM)|Chloe#5422https://codepen.io/Ironchloe/pen/WNJmBRp?editors=0010
|Cookie SSS#6991|[Codepen](https://codepen.io/sqhjikpa-the-selector/pen/NWMJzpp?editors=0012)|
|H.L.C#2152|[Codepen](https://codepen.io/hsin-liang/pen/GRdLKJK)|
|bingsu#2362|[Codepen](https://codepen.io/pmyfr/pen/eYropzo?editors=0010)|
|狸貓#5863|[Codepen](https://codepen.io/tanuki320/pen/GRdLjrY)|
|hua#9099|[Codepen](https://codepen.io/LHua/pen/KKRYZQp?editors=1011)|
|sophiee#7015|[Codepen](https://codepen.io/sophiee2727/pen/bGMJLXr?editors=1010)|
|J_u_d_y#5993|[Codepen](https://codepen.io/J_u_d_y/pen/abGxGyW)|
|MJ_Eddie#5258|[CodePen](https://codepen.io/nick-lin/pen/gOzyygd)|
|軟綿綿 (๑•ᴗ•๑) ♡#3627|[CodePen](https://codepen.io/Connie-Chien/pen/rNvbbwL?editors=0010)|
|yaru#6308|[CodePen](https://codepen.io/lszaietc/pen/JjvVqez?editors=0011)|
|popcorn_3q#9893|[CodePen](https://codepen.io/arnyrpqt-the-sasster/pen/rNvbEpg?editors=0010)|
|L0F0#8733|[CodePen](https://codepen.io/l0f0/pen/jOxoPyV?editors=0011)|
|Karen Chan#4625|[CodePen](https://codepen.io/ruruchan7/pen/ZERYpMj)|
|安o#2448|[CodePen](https://codepen.io/JzhenAn/pen/dyeBKXm)|
|meimei#9524|[CodePen](https://codepen.io/isnrudav/pen/xxzLZpP?editors=1010)|
|Paul#7426|[CodePen](https://codepen.io/paul-1997/pen/zYjgrXq?editors=0010)|