---
# System prepended metadata

title: "\U0001F3C5 JS 任務 Day9 - 陣列設計"
tags: [軟體工程師體驗營 - 2023]

---

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

# 🏅 JS 任務 Day9 - 陣列設計


### 題目一：陣列長度計算

``` =JavaScript
// input 輸入
checkLength([1,2,3])
checkLength([5,8,39,1,2,3])
checkLength([])

// output 輸出
3
6
0
```
### 題目二：增減陣列內容
* 請透過 aryControl 函式，來增減 `ary` 陣列內容。
``` =JavaScript
const ary = [];
// input 輸入
aryControl("增加","black")
aryControl("增加","red")
aryControl("增加","white")
aryControl("增加","blue")
aryControl("刪除指定筆數",3)
aryControl("刪除指定筆數",1)

// output 輸出
["black"]
["red","black"]
["white","red","black"]
["blue","white","red","black"]
["blue","white","black"]
["white","black"]
```

### 題目三：for+陣列相加產生器，邏輯思考題
* 請嘗試用 `numAry` 變數，並搭配 `addAry` 函式來解此題目
``` =JavaScript
const numAry = [1,2,3,4,5]
// input 輸入
addAry(1);
addAry(2);
addAry(3);
addAry(4);
addAry(5);
// output 輸出
1
3
6
10
15
```


## 回報流程

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

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


回報區
---

| 報數 |     Discord 名字     |                              Codepen／其他回饋                               |
|:----:|:--------------------:|:----------------------------------------------------------------------------:|
|  1   |      薯餅#3581       |           [Codepen](https://codepen.io/ColdingPoTaTo/pen/WNazreZ)            |
|  2   |       Nex#2964       |             [Codepen](https://codepen.io/Samuel_D4C/pen/oNaqjRK)             |
|  3   |      冬天#5215       |              [Codepen](https://codepen.io/winter_/pen/oNaqbXN)               |
|  4   |      SKey#9905       |             [Codepen](https://codepen.io/Dale-Chien/pen/KKGoVwo)             |
|  5   |     Eden.C#9359      |               [codepen](https://codepen.io/iseden/pen/dygmGby)               |
|  6   |    andychiou#4830    |           [codepen](https://codepen.io/andychiou1113/pen/mdzxVzM)            |
|  7   |     黑白兔#0684      |             [codepen](https://codepen.io/johnny329/pen/MWPVaNX)              |
|  8   |     Quantum#6093     |            [Codepen](https://codepen.io/Min-Hao-Hung/pen/MWPVKJP)            |
|  9   |     Berlin#7338      |       [Codepen](https://codepen.io/3qberlin/pen/OJBvMYZ?editors=0010)        |
|  10  |     銀光菇#1692      |           [Codepen](https://codepen.io/genesynthesis/pen/LYgdGmN)            |
|  11  |       翔.#0859       |     [Codepen](https://codepen.io/energy95272z/pen/abRYdgd?editors=0012)      |
|  12  |     Judy☻ #7874      |       [Codepen](https://codepen.io/hsiaohan/pen/XWxEdbm?editors=1011)        |
|  13  |      雲漢#5319       |        [codepen](https://codepen.io/keon981/pen/QWZmNpX?editors=0011)        |
|  14  |       kai#1098       |               [Codepen](https://codepen.io/ahkai/pen/KKGoVJJ)                |
|  15  |   Kulimusoda#2785    |      [Codepen](https://codepen.io/yuch3n_chen/pen/VwEXaaM?editors=0011)      |
|  16  |      汪汪#4486       |             [Codepen](https://codepen.io/hunwooooof/pen/JjmLGVK)             |
|  17  |     Snadra#1987      |              [Codepen](https://codepen.io/mlqmhltg/pen/dygmMOV)              |
|  18  |      DeLi#8324       |            [Codepen](https://codepen.io/delichaomoon/pen/XWxEdxM)            |
|  19  |    peihsuan #6315    |            [codepen](https://codepen.io/peihsuanlai/pen/NWOYxzz)             |
|  20  |    Jacky7035#9423    |              [codepen](https://codepen.io/adens123/pen/zYmWqMw)              |
|  21  |     PayRoom#8328     |             [CodePen](https://codepen.io/water38198/pen/oNaqLQR)             |
|  22  |       Uli#1946       |              [CodePen](https://codepen.io/uli1313/pen/vYVRKbE)               |
|  23  |     jia yu#8896      | [CodePen](https://codepen.io/fjqxaznl-the-reactor/pen/VwEXKZY?editors=0011)  |
|  24  |    Izumi 泉#9691     |             [CodePen](https://codepen.io/kouta-f2e/pen/PoyRGbm)              |
|  25  |     JimWang#6134     | [CodePen](https://codepen.io/Jim-Wang-the-selector/pen/XWxEjzw?editors=0011) |
|  26  |      辣椒#1002       |            [codepen](https://codepen.io/chilichen118/pen/MWPVjmz)            |
|  27  |      duck#3310       |       [codepen](https://codepen.io/papy0715/pen/wvYmWyW?editors=0011)        |
|  28  | K（アギルダー）#0386 |             [codepen](https://codepen.io/klay376014/pen/QWZmKZZ)             |
|  29  |     chichi#1534      |            [codepen](https://codepen.io/chichihuang/pen/OJBvRRm)             |
|  30  |   肉個阿倫#7172    |     [Codepen](https://codepen.io/i9574385/pen/WNazobL)       |
|31|ABOOS#6276|[Codepen](https://codepen.io/guhungyin/pen/yLRKVLd?editors=0012)|
|  32  |   泊岸#3466    |     [Codepen](https://codepen.io/qoq77416416/pen/wvYmoGQ?editors=1011)       |
|  33  |  gahwa#3562    |     [Codepen](https://codepen.io/gahwa17/pen/KKGoNMj)       |
|34|Judy Wei#6103|[Codepen](https://codepen.io/Judy0718/pen/Baqrpzy?editors=0011)|
|  35  |   しあわせね#0036    |     [Codepen](https://codepen.io/Front-end-engineer/pen/zYmWNzW?editors=1011) |
|  36  |   Eero#1147    |     [Codepen](https://codepen.io/Eero-Chiao/pen/vYVRKeq?editors=1111) |
|  37  |   Rochel#4754    |     [Codepen](https://codepen.io/rochelwang1205/pen/GRYxoEW?editors=0010) |
|  38  |   wendyli#2155    |     [Codepen](https://codepen.io/rockayumitw/pen/vYVRxxK?editors=0011) |
|  39  |   MitA#7407    |     [Codepen](https://codepen.io/qaz15996398/pen/PoyRpMR) |
| 40 | Tami#6742 | [Codepen](https://codepen.io/wqsdqbjn-the-vuer/pen/abRYJrv) |
| 41 | HsuanTang#1349 | [Codepen](https://codepen.io/HsuanTang/pen/dygmRbj) |
| 42 | 姜承#8204 | [Codepen](https://codepen.io/Troy0718/pen/bGmvoeQ) |
| 43 | jimhop#6510 | [Codepen](https://codepen.io/jimsansssss/pen/dygmVoW?editors=1111)
| 44 | Evaxof#1266 | [Codepen](https://codepen.io/evaxof/pen/ExdEwmg?editors=0010)
| 45 | jelly77#2088 | [Codepen](https://codepen.io/Ming-chiang/pen/zYmWEdK?editors=0011)
| 46 |   Jennifer Chuang#3937    |     [Codepen](https://codepen.io/yujhen/pen/Baqrwpq?editors=1111) |
| 47 |   兔子#6746    |     [Codepen](https://codepen.io/CarrotDetector/pen/GRYxOYJ) |
| 48 |   Akira#9996    |     [Codepen](https://codepen.io/Akira-Chen/pen/LYgdOpr) |
| 49 |   snow#0255   |     [Codepen](https://codepen.io/snow21723/pen/bGmvgKw) |
| 50 |   Janet#5784   |     [Codepen](https://codepen.io/janetlinnn/pen/gOBeXqP?editors=1011) |
|51|wiimax#4564|[Codepen](https://codepen.io/willismax/pen/jOezaMr)
| 52 | ray0304#2070 | [Cpdepen](https://codepen.io/Ray0304/pen/xxyWPNM) |
| 53 |   N0c7iluc3n7#4390   |     [Codepen](https://codepen.io/huang-yu-cheng/pen/RweMxJp) |
|54|Zhong#8917|[codepen](https://codepen.io/klfjrlod-the-sasster/pen/gOBeoQG)|
|55|肉魚#2149|[codepen](https://codepen.io/zoechen13/pen/gOBeoEX)|
|56|Aritan#1931|[codepen](https://codepen.io/Aritan/pen/qBJopzN?editors=1111)|
|57|jackwu#4437|[codepen](https://codepen.io/jackwu1588003/pen/MWPVQWM)|
|58|David0799#4415|[codepen](https://codepen.io/David0799/pen/XWxEZjm)|
| 59 |   ChaosTu#9311   |     [Codepen](https://codepen.io/torotu/pen/XWxEZGM?editors=0012) |
| 60 |   Yuu#5361   |     [Codepen](https://codepen.io/alycehwy/pen/abRYYrP) |
| 61 |   yoyo#1003   | [Codepen](https://codepen.io/pen/rNqdPqM) |
| 62 |   alexmav04#5048   | [Codepen](https://codepen.io/alexmav04/pen/VwEXNwZ?editors=0012) |
|63|君Jyun#0147|[codepen](https://codepen.io/JyunCodepen/pen/dygmvyy?editors=1012)|
|64|bonnieli1414#4906|[codepen](https://codepen.io/bonnieli1414/pen/yLRKWpL?editors=0012)|
|65|鉦勝#8333|[codepen](https://codepen.io/atckmax823/pen/PoyRgxJ?editors=0011)|
|66|PoWei#8484|[codepen](https://codepen.io/harrison-wei-lai/pen/ZEqxdmv?editors=1111)|
|67|Welly#3964|[codepen](https://codepen.io/welly09/pen/poxLMBq)|
|68|liam9930#4129|[codepen](https://codepen.io/jgnjfvvt-the-lessful/pen/MWPGgeN?editors=0011)|
|69|Bruce-Lee#0629|[codepen](https://codepen.io/xxhdklwi-the-decoder/pen/gOBeXVr?editors=0011)|
|70|司機叔叔#2463|[codepen](https://codepen.io/bigv5566/pen/PoyePrZ?editors=0010)|
|71|Hanana#9025|[codepen](https://codepen.io/hananalin/pen/MWPVZPL)|
| 72 |東東#5015|[CodePen](https://codepen.io/wearymask/pen/jOexrQy)|
|73|阿榮#8277|[Codepen](https://codepen.io/codeitaday/pen/OJBZOZJ?editors=0011)|
|74|魚翅#3100|[Codepen](https://codepen.io/Fukahire/pen/RweJoBj)|
|75|jun777#2468|[Codepen](https://codepen.io/js18151102/pen/zYmjmar?editors=0011)|
|76|Yvonne#2721|[Codepen](https://codepen.io/Evonne/pen/xxyzXME?editors=0010)
|77|andrew0404#4576|[Codepen](https://codepen.io/Loonng/pen/WNayqNP?editors=1010)
|78|charlottelee849#0366|[Codepen](https://codepen.io/char849/pen/ZEqjWEM?editors=0012)|
|79|長方形#9612|[Codepen](https://codepen.io/imjjw/pen/jOeKXBB)|
|80|變羊魔法#6372|[Codepen](https://codepen.io/cssf998811/pen/xxyJEBM)|
|81|ABow_Chen#0800|[Codepen](https://codepen.io/fred39392001/pen/gOBdLzm)|
|82|Jaredlee#5887|[Codepen](https://codepen.io/jared-lee/pen/ExdevKv?editors=0011)|
|83|leo.yujie#8280|[Codepen](https://codepen.io/peihsin-the-scripter/pen/rNqZQdV)|
|84|townyuan#2653|[Codepen](https://codepen.io/townyuan/pen/wvYERPw)|
|85|Billy_Ti#9716|[Codepen](https://codepen.io/Ti-Show/pen/wvYEGKg?editors=0010)|
|86|狸貓#5863|[Codepen](https://codepen.io/tanuki320/pen/wvYYaEe?editors=0011)|
|87|喬喬#2824|[Codepen](https://codepen.io/joanne-wei/pen/dygebbO)|
|88|鄭舜仁#6606|[Codepen](https://codepen.io/randomno/pen/VwEEybx)|
|89|勁霖#1602|[Codepen](https://codepen.io/nickwu1229/pen/QWZZZrg)|
|90|Tim123#8361|[Codepen](https://codepen.io/Wangtim4/pen/bGmQWXW?editors=1111)|
|91|JasonChang#7847|[Codepen](https://codepen.io/jsonChangJava/pen/YzJRvbK)|
|92|FanJJ#8061|[Codepen](https://codepen.io/yfchenn/pen/OJBwVeE?editors=0012)|
|93|提姆#9581|[Codepen](https://codepen.io/timouo/pen/YzJLwJW)|
|94|羽毛#5463|[Codepen](https://codepen.io/KYuFeather/pen/poxQYmG)
|95|JhouHank#8132|[Codepen](https://codepen.io/JhouHank/pen/bGmOgJv)
|96|小明#4408|[Codepen](https://codepen.io/ujlylmbv-the-lessful/pen/oNaJyeM)
|97|科科#5463|[Codepen](https://codepen.io/ilove941120/pen/Rwevozm?editors=1111)
|98|alll6z#9204|[Codepen](https://codepen.io/A6Z/pen/abRXjMx)
|99|homer#1525|[Codepen](https://codepen.io/Buckhorn/pen/RweMZMK)
|100|Ataraxia#9977|[Codepen](https://codepen.io/ataraxia8888/pen/qBJPWag)
|101|柚子#3958|[Codepen](https://codepen.io/as6625998/pen/yLRWpKv?editors=1011)
|102|Shiloh#8447|[Codepen](https://codepen.io/pkezwtnq-the-encoder/pen/poxXwvm?editors=0012)
| 103 | Kaya#8857 | [Codepen](https://codepen.io/laron9486/pen/yLQygWG) |
| 104 | Tina02#2691 | [Codepen](https://codepen.io/chjitlox-the-bashful/pen/yLQozrY) |
| 105 | betty#0693 | [Codepen](https://codepen.io/betty-hu/pen/BaGObyE?editors=0012) |
| 106 | hoyiiiii | [Codepen](https://codepen.io/hoyii/pen/NWQoXQe?editors=0012) |