---
# System prepended metadata

title: "\U0001F3C5 JS 任務 Day6 - if 流程判斷 II"
tags: [軟體工程師體驗營 - 2024]

---

---
tags: 軟體工程師體驗營 - 2024
---

# 🏅 JS 任務 Day6 - if 流程判斷 II

### 題目一：日幣計算機 (1:0.32)

``` =JavaScript
// input 輸入
TWDtoJPY(-1)
TWDtoJPY("hi~")
TWDtoJPY(2000)
TWDtoJPY(320)
// output 輸出
"...沒錢別來亂"
"當我看不懂字串？？"
"你換到的日幣有：6250"
"你換到的日幣有：1000"

```
### 題目二：匯率計算機
* 美金：1:29
* 港幣：1:3
* 英鎊：1:35
``` =JavaScript
// input 輸入
TWDtoAnother(100,"USD")
TWDtoAnother(100,"Sword Art Online")
TWDtoAnother(100,"HKD")
TWDtoAnother(100,"GBP")

// output 輸出
"2900"
"..."
"300"
"3500"
```

### 題目三：BMI 計算機
* [公式](https://depart.femh.org.tw/dietary/3OPD/BMI.htm)
``` =JavaScript
// input 輸入 
// BMI(身高,體重)

// output 輸出
"正常"
"重度肥胖"
"中度肥胖"
"輕度肥胖"
"過重"
"過輕"
```

## 進階題，不適合新手
### 字串切割+if
* 如果第一個數字是質數，請將第二、三個數字加總
* 如果第一個數字是偶數，請將第二、三個數字相減
* 如果第一個數字不是質數也不是偶數，請將第二、三個數字相乘
``` =JavaScript
// input 輸入
sum("13,20,10")
sum("10,2,3")
sum("9,5,7")
// output 輸出
30
-1
35
```

## 回報流程

1. 將答案貼在 Codepen 並複製 Codepen 連結貼至「回報區」回報
（也可以將答案直接貼至「回報區」）

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


回報區
---

| 報數 | Discord 名字 |                               Codepen／其他回饋                               |
|:----:|:------------:|:-----------------------------------------------------------------------------:|
|  01  |    Camila    |              [Codepen](https://codepen.io/camilalo/pen/PogvROd)               |
|  02  |  jcode0x378  |     [Codepen](https://codepen.io/jeffreylin1990/pen/oNORdym?editors=0010)     |
|  03  |    詹姆士    |        [Codepen](https://codepen.io/z111048/pen/OJGYGPG?editors=1112)         |
|  04  |  zaoannihao  |         [Codepen](https://codepen.io/ckhwdvrx-the-solid/pen/QWPRPNb)          |
|  5   |   LGJason    |               [Codepen](https://codepen.io/j811108/pen/zYXQXoE)               |
|  6   |    jerry     |             [Codepen](https://codepen.io/sony791210/pen/xxeNewP)              |
|  07  |     Aya      |             [Codepen](https://codepen.io/NoNameNote/pen/jORoJjE)              |
|  08  |     tim      | [Codepen](https://codepen.io/jskrtivy-the-animator/pen/MWRdRaj?editors=1112)  |
|  09  |    Larry     |             [Codepen](https://codepen.io/larrylinr5/pen/ZEZNZMX)              |
|  10  | brucelee0629 |  [Codepen](https://codepen.io/xxhdklwi-the-decoder/pen/mdgYgEv?editors=1011)  |
|  11  | Michelle0417 |            [Codepen](https://codepen.io/michelle0417/pen/yLrWrYJ)             |
|  12  |     白白     |                [Codepen](https://codepen.io/YuBai/pen/wvZbOjR)                |
|  13  |    yuan!     |              [Codepen](https://codepen.io/townyuan/pen/abxrxQj)               |
|  14  |     小趴     |        [Codepen](https://codepen.io/papa2415/pen/yLrWrjb?editors=1011)        |
|  15  |    Yuwen     |          [Codepen](https://codepen.io/Yuwen-the-reactor/pen/abxrMjp)          |
|  16  |   yunyouob   | [Codepen](https://codepen.io/ozkkvlsu-the-animator/pen/RwOmmxR?editors=1111)  |
|  17  |   Chia Pin   |              [Codepen](https://codepen.io/joker-cat/pen/VwNOOQv)              |
|  18  |     JUN_     |         [Codepen](https://codepen.io/Jun-L/pen/WNWBBKz?editors=1011)          |
|  19  |     Eden     |               [Codepen](https://codepen.io/iseden/pen/qBwGwLQ)                |
|  20  |    Jiahe     |      [Codepen](https://codepen.io/Andywang-95/pen/MWRdRjb?editors=0012)       |
|  21  |    WEIWEI    |        [Codepen](https://codepen.io/weiwei93/pen/vYMwqyJ?editors=0010)        |
|  22  |   Tanyaaaa   |             [Codepen](https://codepen.io/tanya77777/pen/BaEeEXz)              |
|  23  |    Lauren    |               [Codepen](https://codepen.io/Lauren8/pen/qBwGzrq)               |
|  24  | anderson666  |            [Codepen](https://codepen.io/goodmanbuild/pen/rNbggjq)             |
|  25  |     boin     |               [Codepen](https://codepen.io/boinji/pen/ExJzByV)                |
|  26  |     Emma     |               [Codepen](https://codepen.io/huang_L/pen/zYXQVgZ)               |
|  27  | liugod3824🔥 | [Codepen](https://codepen.io/kjssvtkr-the-animator/pen/zYXQgYw?editors=0012)✔ |
|  28  |  lynn_1002   |               [Codepen](https://codepen.io/LyNnYWu/pen/eYoaoqM)               |
|  29  |     薛逢     |        [Codepen](https://codepen.io/vogqyrrj-the-selector/pen/VwNOJYP)        |
|  30  |     阿若     |              [Codepen](https://codepen.io/skar5268/pen/ZEZNdKz?)              |
|  31  |  mike_2049   |        [Codepen](https://codepen.io/mike2049/pen/mdgYYby?editors=1112)        |
|  32  |      宇      |            [Codepen](https://codepen.io/jian-yu-chen/pen/yLrWdWY)             |
|  33  |     小米     |      [Codepen](https://codepen.io/hlgudwue-the-typescripter/pen/dyLExRg?editors=1111)      |
|  34  |     Ana      |         [Codepen](https://codepen.io/Ana-Wu/pen/KKYLjqL?editors=0012)         |
|  35  |    Zander    |            [Codepen](https://codepen.io/chuangmaster/pen/LYvoKMz)             |
|  36  |   LiLiLiLi   |      [Codepen](https://codepen.io/jungang0414/pen/zYXQgej?editors=0011)       |
|  37  | Daphne | [Codepen](https://codepen.io/DaphneShen/pen/YzMbmVR?editors=1111) |
|  38  | Winnie | [Codepen](https://codepen.io/codepen-io-winnie/pen/poBmmMq?editors=0011) |
|  39  | Toung | [Codepen](https://codepen.io/Toung/pen/NWmZKyw) |
|  40  | Casey | [Codepen](https://codepen.io/Caseyyyyyyyyyyyyyy/pen/rNbgboJ) |
|  41  | 快樂小豬 | [Codepen](https://codepen.io/rtjowfyf-the-lessful/pen/RwOzwOB?editors=1111) |
|  42  | sweewei | [Codepen](https://codepen.io/sweewei-Law/pen/MWRMYQm?editors=1111) |
|  43  | Amy(咂摳) | [Codepen](https://codepen.io/nnxucgmc-the-builder/pen/OJGePvJ?editors=0012)/進階待補 |
|  44  | MY | [Codepen](https://codepen.io/ahmomoz/pen/wvZLBKL) |
|  45  | s870012 | [Codepen](https://codepen.io/idzrvbnl-the-bashful/pen/JjVQdGz?editors=0011) |
|  46  | Ellie | [Codepen](https://codepen.io/Ellie-Chiang/pen/yLrdNLP?editors=0012) |
|  47  | JY | [Codepen](https://codepen.io/jylee0805/pen/dyLExpj?editors=1111) |
|  48  | KUN. | [Codepen](https://codepen.io/barry91205/pen/wvZLKzX?editors=1111) |
|  49  | leo.chang | [Codepen](https://codepen.io/s16777216/pen/JjVQYBW) |
|  50  | Antonio | [Codepen](https://codepen.io/gwhvusel-the-builder/pen/XWQLmPd) |
|  51  | yuling | [Codepen](https://codepen.io/igzdflpu/pen/YzMozPZ) |
|  52  | easonpan | [Codepen](https://codepen.io/easonpan0904/pen/BaEgjry) |
|  53  | easonpan | [Codepen](https://codepen.io/macy1215/pen/yLrdYMW) |
|  54  | yicheng | [Codepen](https://codepen.io/YiChengCHANG/pen/xxeoVWo?editors=1111) |
|  55  | Chingya | [Codepen](https://codepen.io/chingya1214/pen/MWRMyBP) |
|  56  | Anais77 | [Codepen](https://codepen.io/liu-anais/pen/ZEZdWZw?editors=1112) |
|  57  | Tough life | [Codepen](https://codepen.io/hakuei0115/pen/XWQLXyZ) |
|  58  | Sammy | [Codepen](https://codepen.io/fsczdlla-the-bold/pen/MWRMgLZ?editors=0011) |
|  59  | Ariel| [Codepen](https://codepen.io/ariel0510/pen/gOyNxRy?editors=0010) |
|  60  | sylviabuy | [Codepen](https://codepen.io/sylviabela/pen/GRLbMgg?editors=1111) |
|  61  | Mionne | [Codepen](https://codepen.io/neohyntw/pen/QWPXMyW) |
|  62  | ninii傳教士 | [Codepen](https://codepen.io/niiniiii/pen/RwOzRbp?editors=0011) |
|  63  | kawa | [Codepen](https://codepen.io/z83xji6/pen/VwNJbNa?editors=0012) |
|  64  | Six | [Codepen](https://codepen.io/Max-kuo/pen/vYMqWPR?editors=0012) |
|  65  | Joey一針 | [Codepen](https://codepen.io/joeychou/pen/qBwzpmx) |
|  66  | aoya9155 | [Codepen](https://codepen.io/aoya2139/pen/yLrdqVw?editors=0011) |
|  67  | oldan | [Codepen](https://codepen.io/Enix-Chien-/pen/RwOzOWJ) |
|  68  | oyll | [Codepen](https://codepen.io/dizzydog-rgb/pen/BaEgbXv) |
|  69  | 達達 | [Codepen](https://codepen.io/Adam-Tsai/pen/RwOzOQE?editors=1111) |
|70|Ran|[Codepen](https://codepen.io/Ran-Ran-the-typescripter/pen/rNbEbNe?editors=0011)|
| 71 | Maca | [CodePen](https://codepen.io/uimaca/pen/yLrdrJY?editors=0010) |
| 72 | MDFK | [CodePen](https://codepen.io/aqcrrhwb/pen/bGJPPrK?editors=0012) |
| 73 | 婉玲Dacy | [CodePen](https://codepen.io/xxaynqoq-the-animator/pen/RwOzLya?editors=0012) |
| 74 | yu.t_liu | [CodePen](https://codepen.io/YuT200053/pen/ZEZdOGN?editors=0012) |
|  75  | Andy_12 | [Codepen](https://codepen.io/lifann/pen/QWPXVWe) |
| 76 | Elva Su | [Codepen](https://codepen.io/evensu_/pen/poBXwoQ?editors=0011)
|  77  | 杰_jie | [Codepen](https://codepen.io/hmj8805/pen/KKYOMJL) |
|78|maru3096|[Codepen](https://codepen.io/deamru/pen/vYMoybN)|
| 79 | Frank Chiang | [Codepen](https://codepen.io/frankchiang/pen/yLrmJZm?editors=0011) |
| 80 | tzhengliin | [Codepen](https://codepen.io/tzhengliin/pen/bGJXYwa) |
| 81 | damon0323 | [Codepen](https://codepen.io/swk9eny2/pen/oNOrVaW?editors=0011) |
| 82 | asabulu_von_f | [Codepen](https://codepen.io/asabulu/pen/LYvwdJR?editors=0012) |
| 83 | 黛西 | [Codepen](https://codepen.io/ChiashengLin/pen/NWmQzwb) |
| 84 | ss585801 | [Codepen](https://codepen.io/ss585801/pen/zYXgJed?editors=0012) |
|  85  | weeixunzht | [Codepen](https://codepen.io/CalebZhang/pen/qBwegvG?editors=0011) |
|  86  | Eileen | [Codepen](https://codepen.io/Eileen-io/pen/PogMReE) |
|  87  | 知夜 | [Codepen](https://codepen.io/XiaoXiaTian2/pen/wvbwwyW?editors=1111) |
|88|Sonia| [Codepen](https://codepen.io/YUJOU/pen/RwmbZjy?editors=1111) |
| 89 | kevinwen2014 | [Codepen](https://codepen.io/wenwoo/pen/oNRvVVx?editors=0012) |
|90| discat3119 | [Codepen](https://codepen.io/dizzysoup/pen/WNBeqpZ) |
|91|yo0x0oy|[Codepen](https://codepen.io/Dayton-Hsieh/pen/jOoOPLq)
|91|.zack_p|[Codepen](https://codepen.io/Designer-PH/pen/yLWLeyZ?editors=0012)
|92|Guan(yangguan.)|[Codepen](https://codepen.io/Yang-guan/pen/KKLKajx?editors=0011)|
|93|wan_ju|[Codepen](https://codepen.io/Laura21/pen/abrbEeJ?editors=1111)|
|94|PoWei#8484|[Codepen](https://codepen.io/Po-Wei-Lai/pen/PovoxNP?editors=0011)|
|95|hao jing| [Codepen](https://codepen.io/hjxu/pen/OJYPGav?editors=0011) |
|96| Ed Huang | [Codepen](https://codepen.io/yide1986/pen/pomvmdv?editors=1012) |
|97| jerry_66983 | [Codepen](https://codepen.io/Barry-C/pen/VwOYwNv?editors=0010) |
|  98  | l.shua_228 | [Codepen](https://codepen.io/Shan-Hua-Lin-LIN-HUA/pen/qBGdLOG) |
|  99  | Chieh | [Codepen](https://codepen.io/Wei-Chieh-T/pen/VwOaZyK?editors=0011) |
|  100  | jami_37521 | [Codepen](https://codepen.io/jamiHexo/pen/WNBwXGP) |
|  101  | 邵 | [Codepen](https://codepen.io/ukscrlno-the-typescripter/pen/QWRNPGy?editors=1111) |
|  102 | Shen | [Codepen](https://codepen.io/yan-Shen-the-decoder/pen/KKLzOWM) |
| 103 | n913239 | [Codepen](https://codepen.io/n913239/pen/GRarbpR?editors=1010) |
| 104 | 艾洛 | [Codepen](https://codepen.io/Ironance/pen/vYwEpLK) |
|  105  | maruko1105 | [Codepen](https://codepen.io/marukox1105/pen/pomeQge?editors=0112) |
|  106  | LYC | [Codepen](https://codepen.io/LY-C/pen/PogvvLJ?editors=1111) |
| 107 | Shiny | [Codepen](https://codepen.io/shinychen/pen/VwNJWbb)|
| 108 | ChrisLin | [Codepen](https://codepen.io/vllzfzco-the-reactor/pen/RwmQxEY?editors=1111) |
| 109 | Lang | [Codepen](https://codepen.io/Hsiflow-Lang/pen/zYVxLXr?editors=0012) |
<!--【快速複製】    
|  num  | user | [Codepen]() |
-- >

