---
# System prepended metadata

title: "\U0001F3C5 JS 任務 Day17 - 陣列操作"
tags: [軟體工程師體驗營 - 2024]

---

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

# 🏅 JS 任務 Day17 - 陣列操作


### 題目一：陣列索引
* 陣列索引，點出是第幾筆資料
``` =JavaScript
const numAry = [1,3,4,6,8];

// input 輸入
checkNum(3)
checkNum(9)
checkNum(83)
checkNum(6)

// output 
位置在第2筆
false
false
位置在第4筆
```

### 題目二：陣列相乘
* 將陣列裡面的各個陣列數字相乘

``` =JavaScript
const doubleAry = [
    [1,2,3],
    [3,5,6],
    [2,2,2,2],
];

// input 輸入
callAry(doubleAry)

// output 
"第1個陣列相乘是6，第2個陣列相乘是90，第三個陣列相乘是16"
```

### 題目三：陣列排序
* 正序、反序設計
``` =JavaScript
const a = [1,3,4,6,8];
const b = [3,6,12];
// input 輸入
sortAry("從小到大",[8,3,1,7])
sortAry("從小到大",[99,22,11,33])
sortAry("從大到小",[7,2,33,4])


// output
[1,3,7,8]
[11,22,33,99]
[33,7,4,2]
```

## 回報流程

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

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


回報區
---

| 報數 |     Discord 名字     |                              Codepen／其他回饋                               |
|:----:|:--------------------:|:----------------------------------------------------------------------------:|
|  1  |  詹姆士  | [Codepen](https://codepen.io/z111048/pen/MWdaPYZ?editors=1111) |
|  02  |  han  | [Codepen](https://codepen.io/iamHanCheng/pen/YzbyJqN?editors=0011) |
|  03  |  知夜  | [Codepen](https://codepen.io/XiaoXiaTian2/pen/mdYezWM?editors=1111) |
| 04 | 小趴 | [Codepen](https://codepen.io/papa2415/pen/KKLdGzr)|
|  05  | Aya | [Codepen](https://codepen.io/NoNameNote/pen/PovPyee) |
|  06  | Emma | [Codepen](https://codepen.io/huang_L/pen/xxNwymR) |
|  07  | tim | [Codepen](https://codepen.io/jskrtivy-the-animator/pen/OJYyBvE?editors=1112) |
|  06  | Chia Pin | [Codepen](https://codepen.io/joker-cat/pen/VwOvERr) |
|  07  | Jiahe | [Codepen](https://codepen.io/Andywang-95/pen/WNBQaPW?editors=0012) |
|  08  | zaoannihao | [Codepen](https://codepen.io/ckhwdvrx-the-solid/pen/pomjQeg) |
|  09  | easonpan | [Codepen](https://codepen.io/easonpan0904/pen/zYQvMPd)|
|  10  | kawa | [Codepen](https://codepen.io/z83xji6/pen/XWwmxpr?editors=0012) |
|  11  | Sammy | [Codepen](https://codepen.io/fsczdlla-the-bold/pen/NWVGOeo?editors=0012) |
|  12  | JUN_ | [Codepen](https://codepen.io/Jun-L/pen/MWdaZYE?editors=0011) |
|  13  | jerry | [Codepen](https://codepen.io/sony791210/pen/VwOvgLj) |
|  14  | Andy_12 | [Codepen](https://codepen.io/lifann/pen/PovPggm?editors=0011) |
|  15  | Mionne | [Codepen](https://codepen.io/neohyntw/pen/wvbKOaO) |
|  16  | anderson666 | [Codepen](https://codepen.io/goodmanbuild/pen/XWwmLaR) |
|  17  | macihuang | [Codepen](https://codepen.io/macy1215/pen/YzbyovR) |
|  18  | yunyouob | [Codepen](https://codepen.io/ozkkvlsu-the-animator/pen/jOobgrm?editors=1111)|
|  19  | Michelle0417 | [Codepen](https://codepen.io/michelle0417/pen/ZENbPMK) |
|  20  | Tough life | [Codepen](https://codepen.io/hakuei0115/pen/YzbwKYV) |
|  21  | Winnie | [Codepen](https://codepen.io/codepen-io-winnie/pen/XWwmOXL?editors=0011) |
|  22  | oyll | [Codepen](https://codepen.io/dizzydog-rgb/pen/NWVxPqr) |
| 23 | 薛逢 |[Codepen](https://codepen.io/vogqyrrj-the-selector/pen/eYaJZxm)|
| 24 | Bruno |[Codepen](https://codepen.io/bruno-yu/pen/zYQrBjd?editors=1011)|
| 25 | hongru-LyNn | [Codepen](https://codepen.io/LyNnYWu/pen/rNgxMyv?editors=0011) |
| 26 | Antonio | [Codepen](https://codepen.io/gwhvusel-the-builder/pen/BaejLvW) |
| 27 | ninii傳教士 | [Codepen](https://codepen.io/niiniiii/pen/qBGbojP?editors=0011) |
| 28 | JY | [Codepen](https://codepen.io/jylee0805/pen/pomgzEQ) |
| 29 | Zander | [Codepen](https://codepen.io/chuangmaster/pen/yLWeryg) |
| 30 | yo0x0oy | [Codepen](https://codepen.io/Dayton-Hsieh/pen/LYoGvrv)|
|  31  | Ariel | [Codepen](https://codepen.io/ariel0510/pen/WNBrqpB?editors=0012) |
| 32 | boin | [Codepen](https://codepen.io/boinji/pen/LYoGowx)|
|  33  | Lauren | [Codepen](https://codepen.io/Lauren8/pen/LYoNWmq?editors=1111) |
|  34  | Camila | [Codepen](https://codepen.io/camilalo/pen/mdYPwYa) |
|  35  | Casey | [Codepen](https://codepen.io/Caseyyyyyyyyyyyyyy/pen/JjqXJqM) |
|  36  | 阿若 | [Codepen](https://codepen.io/skar5268/pen/LYoZzgE) |
| 37 | Eden |[Codepen](https://codepen.io/iseden/pen/mdYrjgp)|
| 38 | Shen |[Codepen](https://codepen.io/yan-Shen-the-decoder/pen/wvbowQo)|
| 39 | hao jing |[Codepen](https://codepen.io/hjxu/pen/xxNdwpy?editors=1011)|
| 40 | ChrisLin | [Codepen](https://codepen.io/vllzfzco-the-reactor/pen/ExzdrgM?editors=1111) |
| 41 | maru3096 | [codepen](https://codepen.io/deamru/pen/QWXZzgm?editors=1111) |


---

<!--【快速複製】    
|  num  | user | [Codepen]() |
--> 