---
# System prepended metadata

title: "\U0001F3C5 JS 任務 Day15 - 陣列物件資料處理"
tags: [軟體工程師體驗營 - 2023]

---

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

# 🏅 JS 任務 Day15 - 陣列物件資料處理

### 題目一：物件加值
* 請透過 `addContent` 函式，來增減 `obj` 物件內容。
``` =JavaScript
const obj = {
    sons:[]
}
// input 輸入
addContent("Bob")
addContent("Tom")

// output 輸出 obj 的結果
{
    sons:["Bob"]
}

{
    sons:["Bob","Tom"]
}
```

### 題目二：
* 請透過 `addContent2` 函式，來增減 `obj2` 陣列內容。
``` =JavaScript
const obj2 = []
// input 輸入
addContent2("Bob")
addContent2("Tom")

// output 輸出 obj2 的結果
[
    {name:"Bob"}
]


[
    {name:"Bob"},
    {name:"Tom"},
]
```

### 題目三：
* 請透過 `addContent3` 函式，來增加 `obj3` 物件內容。
``` =JavaScript
const obj3 = {
    male:0,
    female:0
}
// input 輸入
addContent3("male")
addContent3("male")
addContent3("female")
// output 輸出 obj3 的結果
{
    male:1,
    female:0
}


{
    male:2,
    female:0
}

{
    male:2,
    female:1
}
```


## 回報流程

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

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


回報區
---

| 報數 | Discord 名字  |  Codepen／其他回饋                                                         |
|:----:|:-------------------:|:---------------------------------------------------------------------------------------------------------------------------------:|
| 1 | Nex#2964 | [CodePen](https://codepen.io/Samuel_D4C/pen/zYmJmQV) |
| 2 | Rochel#4754 | [Codepen](https://codepen.io/rochelwang1205/pen/PoydxqJ?editors=0010) |
| 3 | Tami#6742 | [Codepen](https://codepen.io/wqsdqbjn-the-vuer/pen/GRYXwJE) |
| 4 | 黑白兔#0684 | [Codepen](https://codepen.io/johnny329/pen/ExdeOVx) |
| 5 | Kulimusoda#2785 | [Codepen](https://codepen.io/yuch3n_chen/pen/bGmxQvQ?editors=0012) |
| 6 | Berlin#7338 | [Codepen](https://codepen.io/3qberlin/pen/MWPqzGg?editors=0010) |
| 7 | Eero#1147 | [Codepen](https://codepen.io/Eero-Chiao/pen/wvYEQmY) |
| 8 | JimWang#6134 | [Codepen](https://codepen.io/Jim-Wang-the-selector/pen/RweYqeQ?editors=0011) |
| 9 | 銀光菇#1692 | [Codepen](https://codepen.io/genesynthesis/pen/eYPLQxp) |
|10| Quantum#6093| [Codepen](https://codepen.io/Min-Hao-Hung/pen/XWxPyQK)|
|11| DeLi#8324| [Codepen](https://codepen.io/delichaomoon/pen/PoydxMx)|
|12| Jacky7035#9423| [Codepen](https://codepen.io/adens123/pen/VwEGqYX)|
|13|Snadra#1987| [Codepen](https://codepen.io/mlqmhltg/pen/vYVzvgV)|
| 14 | ChaosTu#9311 | [Codepen](https://codepen.io/torotu/pen/mdzGaWa?editors=0012) |
| 15 | andychiou#4830 | [Codepen](https://codepen.io/andychiou1113/pen/ZEqMVmJ)|
|16|汪汪#4486|[Codepen](https://codepen.io/hunwooooof/pen/eYPLbwy)|
17|雲漢#5319|[codepen](https://codepen.io/keon981/pen/NWOLeQR?editors=0012)
| 16  | 魚翅#3100    | [Codepen](https://codepen.io/Fukahire/pen/gOBdqgP)                          |
| 17  | 翔.#0859     | [Codepen](https://codepen.io/energy95272z/pen/eYPLxeL?editors=0012)         |
| 18  | jia yu#8896  | [Codepen](https://codepen.io/fjqxaznl-the-reactor/pen/QWZVYZQ?editors=0010) |
| 19  | PayRoom#8328 | [CodePen](https://codepen.io/water38198/pen/KKGxEwG)                        |
| 20  | snow#0255    | [CodePen](https://codepen.io/snow21723/pen/QWZVoOz)                         |
| 21  | gahwa#3562   | [CodePen](https://codepen.io/gahwa17/pen/oNaPOEM)                           |
|22|肉個阿倫#7172|[Codepen](https://codepen.io/i9574385/pen/MWPqRXp)|
|23|N0c7iluc3n7#4390|[Codepen](https://codepen.io/huang-yu-cheng/pen/xxyaoKx)|
| 24 | 辣椒#1002 | [Codepen](https://codepen.io/chilichen118/pen/vYVzqVp) |
| 25 | K（アギルダー）#0386 | [Codepen](https://codepen.io/klay376014/pen/RweYXVq) |
| 26 | HsuanTang#1349 | [Codepen](https://codepen.io/HsuanTang/pen/wvYEVbK) |
| 27 | Uli#1946 | [Codepen](https://codepen.io/uli1313/pen/GRYYKbW) |
| 28 |Akira#9996 | [Codepen](https://codepen.io/Akira-Chen/pen/wvYEJOG) |
|  29  |      東東#5015       |               [CodePen](https://codepen.io/wearymask/pen/bGmmGoj)                |
|  30  |      司機叔叔#2463       |               [CodePen](https://codepen.io/bigv5566/pen/NWOOPMq?editors=0010)                |
| 31 | jun777#2468 |[CodePen](https://codepen.io/js18151102/pen/yLRRyYN?editors=0011)|
| 32 |變羊魔法#6372|[Codepen](https://codepen.io/cssf998811/pen/dyggopE)|
|33|wiimax#4564|[Codepen](https://codepen.io/willismax/pen/eYPPmXG?editors=0011)|
|34|Janet#5784|[Codepen](https://codepen.io/janetlinnn/pen/xxyyGXM?editors=1011)|
|35|Evaxof#1266|[Codepen](https://codepen.io/evaxof/pen/dyggPMd?editors=0010)|
|36|姜承#8204#1266|[Codepen](https://codepen.io/Troy0718/pen/YzJJwXa)|
|37|Jennifer Chuang#3937|[Codepen](https://codepen.io/yujhen/pen/QWZZjBY?editors=1112)|
|38|jackwu#4437|[Codepen](https://codepen.io/jackwu1588003/pen/dyggMpE)|
|39|泊岸#3466|[Codepen](https://codepen.io/qoq77416416/pen/WNaavqM?editors=1112)|
|40|peihsuan#6315|[Codepen](https://codepen.io/peihsuanlai/pen/qBJJjQq)|
|41|jelly77#2088|[Codepen](https://codepen.io/Ming-chiang/pen/NWOOXxm?editors=0011)|
|42|Yvonne#2721|[Codepen](https://codepen.io/Evonne/pen/oNaabbp?editors=0010)
|43|Aritan#1931|[Codepen](https://codepen.io/Aritan/pen/VwEEXmj)
|44|David0799#4415|[Codepen](https://codepen.io/David0799/pen/XWxxypw)
|45|PoWei#8484|[Codepen](https://codepen.io/harrison-wei-lai/pen/mdzzvvV?editors=1012)
|46|Bruce-Lee#0629|[Codepen](https://codepen.io/xxhdklwi-the-decoder/pen/mdzQyGQ?editors=0011)
|47|兔子#6746|[Codepen](https://codepen.io/CarrotDetector/pen/LYgXmby)
|48|yoyo#1003|[Codepen](https://codepen.io/crpbugqy-the-typescripter/pen/BaqGVdN)|
|49|Judy☻#7874|[Codepen](https://codepen.io/hsiaohan/pen/qBJQKKL?editors=0011)|
|50|jimhop#6510|[Codepen](https://codepen.io/jimsansssss/pen/mdzQZXO?editors=1111)
|51|wendyli#2155|[Codepen](https://codepen.io/pen/?editors=0011)
|52|MitA#7407|[Codepen](https://codepen.io/qaz15996398/pen/PoyXPaj)
|53|SKey#9905|[Codepen](https://codepen.io/Dale-Chien/pen/rNqoLbg)
|54|喬喬#2824|[Codepen](https://codepen.io/joanne-wei/pen/KKGJwRY)
|55|bonnieli1414#4906|[Codepen](https://codepen.io/bonnieli1414/pen/zYmerYV?editors=0012)
|56|鄭舜仁#6606|[Codepen](https://codepen.io/randomno/pen/dygadPV)
|57|FanJJ#8061|[Codepen](https://codepen.io/yfchenn/pen/MWPLVzX?editors=0011)
|58|Ataraxia#9977|[Codepen](https://codepen.io/ataraxia8888/pen/qBJPWag)
|59|Yuu#5361|[Codepen](https://codepen.io/alycehwy/pen/eYPxqKw)
|60|JasonChang#7847|[Codepen](https://codepen.io/jsonChangJava/pen/rNqRaEa)
|61|羽毛#5463|[Codepen](https://codepen.io/KYuFeather/pen/abRMGbX)
|87| Zhong#8917 | [Codepen](https://codepen.io/klfjrlod-the-sasster/pen/mdzogKW?editors=0010) |
|88| 勁霖#1602 | [Codepen](https://codepen.io/nickwu1229/pen/rNqbvyZ?editors=00110) |
|88| JhouHank#8132 | [Codepen](https://codepen.io/JhouHank/pen/OJBGeQK) |
|89| 小明#4408 | [Codepen](https://codepen.io/ujlylmbv-the-lessful/pen/RwemwaY) |
|90| townyuan#2653 | [Codepen](https://codepen.io/townyuan/pen/wvYLMdM) |
|91| 科科#5463 | [Codepen](https://codepen.io/ilove941120/pen/jOejVwK?editors=1111) |
|92| Jaredlee#5887 | [Codepen](https://codepen.io/jared-lee/pen/bGmPQXb?editors=0011) |
|93| liam9930#4129 | [Codepen](https://codepen.io/jgnjfvvt-the-lessful/pen/JjePYLR?editors=0011) |
| 94 | Kaya#8857 | [Codepen](https://codepen.io/laron9486/pen/qBQOjzG) |
| 95 | Ann Chou#0146 | [Codepen](https://codepen.io/annchou_illu/pen/NWERdPB) |
| 96 | Tina02#2691 | [Codepen](https://codepen.io/chjitlox-the-bashful/pen/jOQGBbB) |
| 97 | hoyiiiii | [Codepen](https://codepen.io/hoyii/pen/VwoOrNE?editors=0012) |
