---
# System prepended metadata

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

---

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

# 🏅 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  | Camila | [Codepen](https://codepen.io/camilalo/pen/LYvwaQG) |
|  2  | 詹姆士 | [Codepen](https://codepen.io/z111048/pen/abxeejw?editors=1112) |
|  3  | 白白 | [Codepen](https://codepen.io/YuBai/pen/JjVggZr?editors=0012) |
|  04  | Aya | [Codepen](https://codepen.io/NoNameNote/pen/oNOKKdE) |
|05|Michelle0417|[Codepen](https://codepen.io/michelle0417/pen/LYvwwwr)|
| 06 | yunyouob | [Codepen](https://codepen.io/ozkkvlsu-the-animator/pen/rNgBBxG?editors=1011)|
|  07  | LARRY | [Codepen](https://codepen.io/larrylinr5/pen/OJYLLNJ?editors=0012) |
|  8  | LGJason | [Codepen](https://codepen.io/j811108/pen/NWVKKjr) |
|  9 | 小趴  | [Codepen](https://codepen.io/papa2415/pen/dyEbbPg) |
|  10  | kawa | [Codepen](https://codepen.io/z83xji6/pen/dyEbbpw?editors=0010) |
|  11  | tim | [Codepen](https://codepen.io/jskrtivy-the-animator/pen/ExzYYKQ?editors=1112) |
|  12  | Daphne | [Codepen](https://codepen.io/DaphneShen/pen/wvbwwmW?editors=1111) |
|  13  | joy1712 | [Codepen](https://codepen.io/Joy1712/pen/jORgeeG?editors=0011) |
|  14  | asabulu_von_f | [Codepen](https://codepen.io/asabulu/pen/jOoNNQL?editors=0011) |
|  15  | Ana | [Codepen](https://codepen.io/Ana-Wu/pen/rNgBBZK?editors=1111)|
|  16  | Chia Pin | [Codepen](https://codepen.io/joker-cat/pen/rNgBNBq)|
|  17  | 阿若 | [Codepen](https://codepen.io/skar5268/pen/MWdgWKq) |
|  18  | yuan! | [Codepen](https://codepen.io/townyuan/pen/ZENzEEj) |
|  19  | EMma | [Codepen](https://codepen.io/huang_L/pen/PovYoGp) |
|  20  | zaoannihao | [Codepen](https://codepen.io/ckhwdvrx-the-solid/pen/gOJYOzx) |
|  21  | Lauren | [Codepen](https://codepen.io/Lauren8/pen/ExzYaYP) |
|  22  | 小米 | [Codepen](https://codepen.io/hlgudwue-the-typescripter/pen/zYQOOzW?editors=1111) |
|  23  | Tanyaaaa | [Codepen](https://codepen.io/tanya77777/pen/vYwBEEe) |
|  24  | sylviabuy | [Codepen](https://codepen.io/sylviabela/pen/OJYLPGY?editors=1111) |
|  25  | 薛逢 | [Codepen](https://codepen.io/vogqyrrj-the-selector/pen/rNgBaVV) |
|  26  | JUN_ | [Codepen](https://codepen.io/Jun-L/pen/zYQOGrP?editors=0011) |
|  27  | JY | [Codepen](https://codepen.io/jylee0805/pen/MWdgYOa?editors=1111) |
|  28  | tzhengliin(子恆) | [Codepen](https://codepen.io/tzhengliin/pen/YzbKXbz) |
|  29  | damon0323 | [Codepen](https://codepen.io/swk9eny2/pen/YzbKXRK?editors=0012) |
|  30  | boin | [Codepen](https://codepen.io/boinji/pen/MWdgagG) |
|  31  | Eden |[Codepen](https://codepen.io/iseden/pen/LYoPVvo)|
|  32  | Jiahe |[Codepen](https://codepen.io/Andywang-95/pen/OJYLypg?editors=0012)|
|  33  | jerry |[Codepen](https://codepen.io/sony791210/pen/XWwrmPv)|
|  34  | mike_2049 |[Codepen](https://codepen.io/mike2049/pen/qBweewo)|
|  35  | 知夜 |[Codepen](https://codepen.io/XiaoXiaTian2/pen/wvbwMqN?editors=1111)|
|  36  | Eileen |[Codepen](https://codepen.io/Eileen-io/pen/GRaKovB)|
|  37  | WEIWEI | [Codepen](https://codepen.io/weiwei93/pen/OJYLyvO?editors=0012) |
|  38  | yuling | [Codepen](https://codepen.io/igzdflpu/pen/MWRNNxj) |
|  39  | easonpan | [Codepen](https://codepen.io/easonpan0904/pen/eYaOJJm) |
|  40  | anderson666 | [Codepen](https://codepen.io/goodmanbuild/pen/jOoNqew) |
|  41  | s870012 | [Codepen](https://codepen.io/idzrvbnl-the-bashful/pen/jOoNMEJ?editors=0011) |
|  42  | Amy(咂摳) | [Codepen](https://codepen.io/nnxucgmc-the-builder/pen/VwOZjVm?editors=0012) |
|  43  | Antonio | [Codepen](https://codepen.io/gwhvusel-the-builder/pen/VwOZjbe) |
|  44  | KUN. | [Codepen](https://codepen.io/barry91205/pen/RwmbGYY?editors=1112) |
|  45  | hongru-LyNn | [Codepen](https://codepen.io/LyNnYWu/pen/WNBeoNv?editors=0010) |
|  46  | Mionne | [Codepen](https://codepen.io/neohyntw/pen/YzbKpXR) |
|  47  | MY | [Codepen](https://codepen.io/ahmomoz/pen/OJYLRaq?editors=1112) |
|  48  | brucelee0629 | [Codepen](https://codepen.io/xxhdklwi-the-decoder/pen/NWVKbOd?editors=1011) |
|  49  | Tough life | [Codepen](https://codepen.io/hakuei0115/pen/NWVKdgX) |
|  50  | 黛西 | [Codepen](https://codepen.io/ChiashengLin/pen/GRaKrpq?editors=1112) |
| 51 | LiLiLiLi| [Codepen](https://codepen.io/jungang0414/pen/ExzYWXg?editors=0012)|
|  52  | Andy_12 | [Codepen](https://codepen.io/lifann/pen/pomzPzy?editors=0011) |
|  53  | leo.chang | [Codepen](https://codepen.io/s16777216/pen/eYaOWOv) |
|  54  | Zander | [Codepen](https://codepen.io/chuangmaster/pen/dyEbOMg) 
|  55  | oyll | [Codepen](https://codepen.io/dizzydog-rgb/pen/VwOZXVK) |
|  56  | macihuang | [Codepen](https://codepen.io/macy1215/pen/jOoNxYj) |
| 57 | maru3096 | [Codepen](https://codepen.io/deamru/pen/jOoNQep) |
| 58 | oldan | [Codepen](https://codepen.io/Enix-Chien-/pen/wvbwYZz) |
| 59 | ninii傳教士 | [Codepen](https://codepen.io/niiniiii/pen/PovYpdX?editors=0011) |
|  60  | Casey | [Codepen](https://codepen.io/Caseyyyyyyyyyyyyyy/pen/dyEbKWQ) |
|  61  | ikpolo | [Codepen](https://codepen.io/ikpolo/pen/JjqjjWq) |
|  62  | Sammy | [Codepen](https://codepen.io/fsczdlla-the-bold/pen/LYoYEmL?editors=0012) |
|  63  | Haley | [Codepen](https://codepen.io/wsx3690/pen/YzbzwvY?editors=0012) |
| 64 | kevinwen2014 | [Codepen](https://codepen.io/wenwoo/pen/PovoGYJ?editors=0012) |
|  65  | Winnie | [Codepen](https://codepen.io/codepen-io-winnie/pen/XWwrrdz?editors=0011) |
| 66 | Maca | [CodePen](https://codepen.io/uimaca/pen/pomoNqP?editors=0010) |
|67|Ran|[Codepen](https://codepen.io/Ran-Ran-the-typescripter/pen/Yzbzeob?editors=0011)|
|  68  | 杰_jie | [Codepen](https://codepen.io/pen/?editors=1111) |
|  69  | Ariel | [Codepen](https://codepen.io/ariel0510/pen/RwmNbzm?editors=0011) |
|  70  | discat3119 | [Codepen](https://codepen.io/dizzysoup/pen/zYQxwaz) |
| 71 | yo0x0oy | [Codepen](https://codepen.io/Dayton-Hsieh/pen/KKLwXgP)|
| 72 | Six | [Codepen](https://codepen.io/Max-kuo/pen/zYQxpbv) |
| 73 |wan_ju | [Codepen](https://codepen.io/Laura21/pen/zYQGvJL?editors=1111) |
| 74 |jami_37521 | [Codepen](https://codepen.io/jamiHexo/pen/abrNRwr) |
|  75  | l.shua_228 | [Codepen](https://codepen.io/Shan-Hua-Lin-LIN-HUA/pen/MWdegwQ) |
|  76  | Joey一針 | [Codepen](https://codepen.io/joeychou/pen/bGyeROZ) |
|  77  | hao jing | [Codepen](https://codepen.io/hjxu/pen/ExzgNKR?editors=0011) |
|  78  | Shen | [Codepen](https://codepen.io/yan-Shen-the-decoder/pen/yLWaqpZ) |
|  79  | Sonia | [Codepen](https://codepen.io/YUJOU/pen/vYwyxBJ?editors=1111) |
| 80 | 邵 |[Codepen](https://codepen.io/ukscrlno-the-typescripter/pen/pomNLyL?editors=0011)|
| 81 | 艾洛 |[Codepen](https://codepen.io/Ironance/pen/XWwbyJR?editors=0012)|
|  82  | maruko1105 | [Codepen](https://codepen.io/marukox1105/pen/abrJPxN?editors=0111) |
| 83 | ChrisLin | [Codepen](https://codepen.io/vllzfzco-the-reactor/pen/RwmMOdM) | 
|84 | Shiny | [Codepen](https://codepen.io/shinychen/pen/OJYZeQN)|

<!-- |  num  | user | [Codepen]() | -->
<!-- -- > -->

