---
# System prepended metadata

title: "\U0001F3C5 DAY14 每日任務"
tags: [JS 直播班  - 2021 秋季班]

---

# 🏅 DAY14 每日任務
###### tags: `JS 直播班  - 2021 秋季班`

問題
---
高雄地區開始實施兵役體檢，只要符合以下其中一個條件就可以免除兵役:
1. BMI >= 35
2. 天生為扁平足 (flatFoot)

請透過以下程式幫小明判斷一下他需不需要當兵，如果需要，則用陣列方法把他加到 militaryData 的 soldierName 裡面。

```js=
let militaryData = {
    time: 2021,
    region: "高雄",
    soldierName: ["Tom", "Nick", "John"]
 }
 let mingStatus = {
     name: "小明",
     residence: "高雄",
     flatFoot: false,
     BMI: 22,
     height: 178
 }
 if(/*請填入判斷式*/){
     console.log("小明不用當兵");
 }else{
     // 將小明填入國軍名單
     console.log("小明光榮入伍");
     //請輸出 militaryData 的 soldierName 陣列
     console.log(`名單: ${/*程式碼撰寫處*/}`);
}

```





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

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

<!-- 解答
let militaryData = {
   time: 2021,
   region: "高雄",
   soldierName: ["Tom", "Nick", "John"]
}
let mingStatus = {
    name: "小明",
    residence: "高雄",
    flatFoot: false,
    BMI: 22,
    height: 178
}
if(mingStatus.flatFoot || mingStatus.BMI >= 35){
    console.log("小明不用當兵");
}else{
    militaryData.soldierName.push(mingStatus.name);
    console.log("小明光榮入伍")
    console.log(`名單: ${militaryData.soldierName}`);
}
-->

|      Slack      |                              CodePen                               |
|:---------------:|:------------------------------------------------------------------:|
|   Karen Huang   |           https://codepen.io/Coding_Snorlax/pen/ZEJyeZN            |
|   Iris Huang    |               https://codepen.io/ythuang/pen/gOxRWOo               |
| Cheng Pei-hsuan |               https://codepen.io/PaCheng/pen/zYdGKpO               |
|     傅劍軒      |      https://codepen.io/seonkuraito/pen/zYdzwxG?editors=0010       |
|     Bonnie      |      https://codepen.io/bonnieli1414/pen/bGrRWdx?editors=0011      |
|    Aaron Tu     |               https://codepen.io/aarontu/pen/YzxQVyQ               |
|      YuriT      |              https://codepen.io/wenfisht/pen/abywWOd               |
|     CloThEs     |          https://codepen.io/bogwdnxx-the-sans/pen/zYdzwqv          |
|      Louis      |      https://codepen.io/Louis164156/pen/oNewWzW?editors=1010       |
| 有廖先生(Rain)  |             https://codepen.io/billpop741/pen/JjyNLvx              |
|       Sam       |               https://codepen.io/sam-hsu/pen/YzxQVNr               |
|   ボンドルド    |              https://codepen.io/alan60108/pen/dyzRWWz              |
|     Tim Lin     |              https://codepen.io/TimmyLin/pen/xxLrdzd               |
|      jojoy      |         https://codepen.io/jojoy/pen/zYdzwRK?editors=0011          |
|     POPEYE      |              https://codepen.io/popeye_ux/pen/KKvqmBK              |
|  Jun Ting Lin   |              https://codepen.io/jake1155/pen/RwZgVBJ               |
|     林小君      |   https://codepen.io/hcvbcjqq-the-vuer/pen/QWMgvoW?editors=0010    |
|    AndyHuang    |             https://codepen.io/HsuHuaHuang/pen/ZEJyKwO             |
|      洋蔥       |  https://codepen.io/oikdkmxq-the-looper/pen/porwPmg?editors=0011   |
|      米米       |      https://codepen.io/Jameshsu0407/pen/abywwbL?editors=0011      |
|    kevin嘉軒    |       https://codepen.io/kevin-chang-the-sasster/pen/jOLwwEb       |
|      Genos      |              https://codepen.io/pb220416/pen/porwwoy               |
|   Elaine Liu    |       https://codepen.io/elaine7598/pen/qBXjjBx?editors=0010       |
|    Pei Ying     |        https://codepen.io/Pei-Ying/pen/yLoXXNa?editors=0011        |
|       YC        |                https://codepen.io/YCLu/pen/NWvggNq                 |
|      lumei      |               https://codepen.io/l_umei/pen/MWvooeJ                |
|     連小艾      |       https://codepen.io/bolaslien/pen/wvqedpN?editors=0012        |
|     Hamaji      |             https://codepen.io/hamajibashi/pen/oNewwbM             |
|       Lai       |         https://codepen.io/co_lai/pen/xxLrrqj?editors=0011         |
|     Juno Li     |        https://codepen.io/Juno026/pen/vYJZZXb?editors=0012         |
|      Gill       |       https://codepen.io/Gill-Chin/pen/XWagggz?editors=0011        |
|      大衛       |        https://codepen.io/exnsrpjc/pen/GRvEmGX?editors=0011        |
|      Sunny      |           https://codepen.io/shihchinghuang/pen/xxLrrvM            |
|     陳暐中      |         https://codepen.io/wei-z/pen/ExvXvxO?editors=0012          |
|    Sylvia-H     |      https://codepen.io/Cosmosheart/pen/KKvqvwy?editors=0011       |
|      Anna       |        https://codepen.io/kycrleao/pen/wvqeqWd?editors=0011        |
|      Alvin      |     https://codepen.io/Alvin20201116/pen/WNEOEoX?editors=1011      |
|     Arista      |            https://codepen.io/arista-hsieh/pen/LYjLjWP             |
|      Yunei      |                https://codepen.io/Yunei/pen/ExvXvoB                |
|      群嘉       |  https://codepen.io/efzdamnp-the-lessful/pen/wvqeqyP?editors=0011  |
|   Peter Chen    |        https://codepen.io/yuckugjy-the-sasster/pen/xxLrLJx         |
|   Peggy Tsai    |      https://codepen.io/pei-chi-tsai/pen/RwZgwqw?editors=0011      |
|   Steven Chan   |       https://codepen.io/Steven1220/pen/JjyJJrB?editors=1011       |
|   Bean Huang    |       https://codepen.io/Beanhuang/pen/WNEOEqg?editors=0010        |
|       Leo       |              https://codepen.io/a86483451/pen/XWagaXy              |
|      Phil       | https://codepen.io/ctkeftjp-the-animator/pen/MWvoEbg?editors=0011  |
|     蔡明達      |              https://codepen.io/bmzpfyxe/pen/NWgKQZB               |
|      鉦勝       |       https://codepen.io/atckmax823/pen/RwZgLVQ?editors=1011       |
|    kevinhes     |        https://codepen.io/kevinhes/pen/bGrRoLZ?editors=0012        |
|   Irene Wang    |        https://codepen.io/irene-wang-the-looper/pen/mdMwBKj        |
|     蔣秉彣      |       https://codepen.io/the-pierre/pen/RwZporY?editors=0010       |
|   Metis Teng    |       https://codepen.io/metis-teng/pen/BadZmBg?editors=0012       |
|     Jessie      |              https://codepen.io/jssanji03/pen/WNEOXwv              |
|     ZY Hsu      |         https://codepen.io/zihyin/pen/porwdae?editors=0011         |
|       Yof       |        https://codepen.io/yangyof/pen/oNewomO?editors=1010         |
|     劉維倫      |        https://codepen.io/lun0223/pen/KKvqZPX?editors=1012         |
|     柯勝華      |       https://codepen.io/Chill-Nick/pen/xxLrppv?editors=0010       |
|     Jie Du      | https://codepen.io/qgqonost-the-flexboxer/pen/QWMgQwJ?editors=0012 |
|       Gui       |              https://codepen.io/guitimliu/pen/abywqYp              |
|     Booker      |           https://codepen.io/bookbasketball/pen/XWagZON            |
|   Ellen Chen    |            https://codepen.io/ellenchialin/pen/gOxRvJZ             |
|   Bella Shya    |        https://codepen.io/BellaXie/pen/KKvqoaM?editors=0010        |
|     艾瑞克      |         https://codepen.io/ericla/pen/RwZgMEb?editors=0012         |
|     ZOE WU      |       https://codepen.io/Zoechiueh/pen/gOxReVP?editors=0011        |
|     許閔翔      |        https://codepen.io/oupbzfxq-the-scripter/pen/JjyJLgx        |
|      小不       |            https://codepen.io/SharonWu1987/pen/dyzRVyN             |
|     Shaun43     |               https://codepen.io/i418063/pen/gOxRzyG               |
|   Yashien Lin   |       https://codepen.io/YashienLin/pen/JjyJvqY?editors=0010       |
|       小K       |              https://codepen.io/kelen1995/pen/YzxQLrw              |
|      Sandy      |        https://codepen.io/Sandy_L/pen/NWvgBrP?editors=0011         |
|      阿和       |         https://codepen.io/shnny/pen/jOLwpBq?editors=0011          |
|    debby yeh    |        https://codepen.io/bhliyoup/pen/MWvoBpJ?editors=0011        |
|    lingxuan     |      https://codepen.io/penglingxuan/pen/gOxRjXV?editors=0011      |
|     Trista      |             https://codepen.io/trista6140/pen/rNzwrpY              |
|      張喆       |               https://codepen.io/wow767t/pen/MWvoqgQ               |
|     黃士桓      |     https://codepen.io/shr-huan-huang/pen/MWvoqWQ?editors=0012     |
|       phi       |          https://codepen.io/ai-y/pen/mdMwGbJ?editors=1111          |
|     Jocelyn     |        https://codepen.io/enjoyful/pen/PoKjdRm?editors=0011        |
|      yunyi      |             https://codepen.io/yunyi12374/pen/ZEJbKVW              |
|   Jean Chiang   |           https://codepen.io/jeanchiang1221/pen/KKvqGvL            |
|     Mingyo      |        https://codepen.io/Nick-Yo/pen/VwzWErM?editors=0011         |
|   Kelvin Hsu    |              https://codepen.io/kelvin001/pen/jOLLPGJ              |
|      fyfy       |        https://codepen.io/fyfy1217/pen/GRvEeKw?editors=0011        |
|      溫溫       |        https://codepen.io/ZPXO1928/pen/BadwMZw?editors=0010        |
|     Jun Hua     |              https://codepen.io/ydsyvkph/pen/Vwzzvvd               |
|     kailun      |               https://codepen.io/Coding_Snorlax/pen/ZEJyeZN                |
|     Celeste     |              https://codepen.io/Celeste17/pen/wvqJboZ              |
|     鄭安志      |        https://codepen.io/lwmtsgek/pen/vYJJLEB?editors=0011        |
|    danny123     |      https://codepen.io/binlandz123/pen/OJjjNQw?editors=0010       |
|      Riley      |              https://codepen.io/jjpxbprd/pen/BaddKwP               |
|     Yvonne      |         https://codepen.io/Evonne/pen/zYddKvL?editors=0011         |
|      雪莉       |             https://codepen.io/utshang216/pen/KKvvgqZ              |
|     Jasper      |              https://codepen.io/li-jasper/pen/dyzzOxJ              |
|      YOYO       |        https://codepen.io/lumedkle/pen/zYddZGL?editors=1111        |
|    Vicky Kao    |             https://codepen.io/vicky03035/pen/WNEEjRa              |
|      喜美       |       https://codepen.io/Candace802/pen/abyyVyV?editors=0010       |
|  YU-LING TUNG   |        https://codepen.io/igzdflpu/pen/RwZZENX?editors=0010        |
|       AKI       |              https://codepen.io/akichen27/pen/YzxxBaQ              |
|     Tingyu      |         https://codepen.io/dgltu/pen/oNeeKGR?editors=0011          |
|       zyc       |                https://codepen.io/zy_c/pen/rNzGKzg                 |
|    Page Shih    |             https://codepen.io/kanawin821/pen/wvqrYwd              |
|Van.S|https://codepen.io/fbacojji-the-selector/pen/RwZLmEg?editors=0011 |
|UnizaLin | https://codepen.io/unizalin/pen/abyVbod |
| ShinyChen | https://codepen.io/shinychen/pen/jOLaBEW |
|kk|https://codepen.io/potatokaka/pen/QWMOpVp|
|Chia Chi|https://codepen.io/ClaraChen/pen/abyVwxy?editors=0011|
|Calon|https://codepen.io/Calon0118/pen/BadmdLB|
|Alberto|https://codepen.io/AlbertoLL/pen/OJjOwwa?editors=0012|
|吐司|https://codepen.io/malolulu/pen/zYdpxwE|
|  肉魚  |  https://codepen.io/zoechen13/pen/PoKEmzN  |
|Cadiis| https://codepen.io/candiyen/pen/jOLYjme |
|阿修| https://codepen.io/edw-kyo/pen/BadYzow |
|LTL| https://codepen.io/ltlin93/pen/zYdpvWq |
|Zooey| https://codepen.io/noraneko0430/pen/VwzQXqb?editors=0012|
| 三隻小貓 | https://codepen.io/bagelover/pen/xxLYoaG?editors=0010 |
|zaii|https://codepen.io/ivy2846357/pen/OJjBPGm?editors=0010|
|Jyun Chen|https://codepen.io/Jyun_C/pen/XWaGGpy?editors=0011|
|傑瑞|https://codepen.io/auatwood909815/pen/ZEJZRYW?editors=0012|
paul|https://codepen.io/printfootya/pen/dyzLgmq?editors=0011
