---
tags: 公益程式體驗營 - 2022
---
# 🏅 5/24(二) 每日 JS 刷題任務 - 從不同資料集,尋找規律性
### 題目一:判斷是否有值
* 判斷帶入參數是否有陣列中的值
``` =JavaScript
const numAry = [1,3,4,6,8];
// input 輸入
checkNum(3)
checkNum(9)
checkNum(83)
checkNum(6)
// output 輸出 obj 的結果
true
false
false
true
```
### 題目二:刪除值
* 判斷陣列是否有值,有則刪除指定資料,並回傳 `deletAry` 變數
* 沒有則回傳 false
``` =JavaScript
const deletAry = [1,3,4,6,8];
// input 輸入
delNum(3)
delNum(9)
delNum(83)
delNum(6)
// output 輸出 obj 的結果
[1,4,6,8]
false
false
[1,4,8]
```
### 題目三:兩個陣列尋找相同數字
* 請找出 a 與 b 陣列裡面,若有相同數值,則篩選出來成為一個陣列
``` =JavaScript
const a = [1,3,4,6,8];
const b = [3,6,12];
// input 輸入
checkSame(a,b)
// output 輸出 obj 的結果
[3,6]
```
## 回報流程
1. 將答案貼在 Codepen 並複製 Codepen 連結貼至「回報區」回報
(也可以將答案直接貼至「回報區」)

<!-- 解答: -->
回報區
---
<!-- 0. Bingbingboom(回報範例,請使用註解回報)
答案:(可直接撰寫答案)
Codepen:https://codepen.io/Bingbingboom/pen/jOBZVWq
-->
<!-- 1. Bruno Yu
Codepen: https://codepen.io/bruno-yu/pen/MWQoYby?editors=0011
-->
<!-- 1. 鉦勝
Codepen: https://codepen.io/atckmax823/pen/JjpyWvy?editors=0011
-->
<!-- 3. yunyun
Codepen: https://codepen.io/yun_yunni/pen/YzerGpQ
-->
<!-- 4. su#7798
codepen: https://codepen.io/wc-su/pen/rNJGMMN
-->
<!-- 5.IreneLee
codepen:https://codepen.io/ntjtcxpt-the-animator/pen/mdXBrWp?editors=0012
-->
<!-- 6. Jason Chen
codepen:https://codepen.io/jason60810/pen/vYdeXOm
-->
<!-- 7. Mitour#0672
codepen: https://codepen.io/mitour/pen/qBxPaxr
-->
<!-- 7. Xiang#5313
codepen: https://codepen.io/snorlaxxu/pen/VwQMKBr?editors=1010
-->
<!-- 8. Noy
https://codepen.io/MochiCodingPen/pen/wvyrzrY
-->
<!-- 9.CloThEs
https://codepen.io/bogwdnxx-the-sans/pen/NWyaRdO
-->
<!--10. Aaron803
Codepen : https://codepen.io/narrowd4c/pen/GRQJoJP
-->
<!--10. han#9437
Codepen : https://codepen.io/qnrxylcw-the-reactor/pen/YzerGOe
-->
<!-- 11. hw#0715
https://codepen.io/Lhwei/pen/xxYXEMd
-->
<!-- 12. 楓之聲#6945
https://codepen.io/sshane258/pen/mdXBOpY
-->
<!--13. Rex Chu
Codepen:
https://codepen.io/rex_chu/pen/NWyabqK
-->
<!--14. Tuhacrt#0008
Codepen: https://codepen.io/Tuhacrt/pen/WNMZoOQ?editors=0011
-->
<!--15.Vito#7797
https://codepen.io/Vito_Yang/pen/NWyabJR?editors=0012
-->
<!--16. andersonshen#4675
Codepen: https://codepen.io/luxyenni-the-bold/pen/gOvGLdY
-->
<!--17. yuyu#6310
Codepen: https://codepen.io/yuyu0905/pen/oNEGBev?editors=0012
-->
<!--18. Knn#0492
Codepen: https://codepen.io/Knn_84/pen/RwQLKxa?editors=0010
-->
<!-- 19. Chi
Codepen: https://codepen.io/YoChi84/pen/VwQMpQM
-->
<!-- 20. Peng
https://codepen.io/peng-027/pen/BaYwQvo?editors=1010
-->
<!-- 21. Chaoci#2460
Codepen:
https://codepen.io/gmailchao/pen/QWQqvqy?editors=0010
-->
<!-- 22. KuoMin#4931
Codepen:
https://codepen.io/KuoMin/pen/abqLWBV
-->
<!-- 22. Cheng-Yu#1813
Codepen:
https://codepen.io/ball77111/pen/GRQMEVE?editors=0011
-->
<!-- 23. Chaco#2993
Codepen:
https://codepen.io/chaco-wang/pen/OJQxgQp?editors=1012
-->
<!-- 23. hsiuhsiu
Codepen:
https://codepen.io/hsiuhsiu/pen/PoQJJxo?editors=0011
-->
<!-- 24. lyle#8123
Codepen:
https://codepen.io/tomys/pen/zYREPKm?editors=0011
-->
<!-- 25. RayChen#6088
Codepen:
https://codepen.io/raychen1996/pen/oNEGpEW
-->
<!-- 26. Raymond Lam#0344
https://codepen.io/manshun-lam/pen/WNMZdWq?editors=1111
-->
<!-- 27. TaoDoris#5230
https://codepen.io/peetaoting/pen/wvyrpbO
-->
<!-- 28. Arista
https://codepen.io/arista-hsieh/pen/bGLovOY
-->
<!-- 29. bonnieli1414#4906
https://codepen.io/bonnieli1414/pen/abqLKKY?editors=0010
-->
<!-- 30. Josh Chen#4552
https://codepen.io/hiphop825/pen/QWQqxXd?editors=0010
-->
<!-- 31. SASIMI#5099
Codepen:
https://codepen.io/sashimi1327/pen/yLvzqvj
-->
<!-- 32. RyanLu#3642
Codepen:
https://codepen.io/ryanlu1125/pen/RwQLeZE?editors=0012
-->
<!-- 33. 小鹿Kerwin#5730
Codepen:
https://codepen.io/tkoleo84119/pen/GRQMYMe?editors=0012
-->
<!-- 34. 小王https://codepen.io/stevetanus/pen/JjprqOp
-->
<!-- 35. WilliamChou#7375 https://codepen.io/williampo78/pen/bGLYVqB
-->
<!-- 36. Stanley
Codepen:
https://codepen.io/sean_1215/pen/gOvXaor?editors=1112
-->
<!-- 37.Lina Chen
Codepen: https://codepen.io/LinaChen/pen/LYQzBxo
-->
<!-- 38.Joyce
https://codepen.io/joycehuang/pen/rNJYRbq?editors=0111
-->
<!-- 39.Charlotte Lee
https://codepen.io/charlotte-lee/pen/XWZVzQP?editors=0012
-->
<!--40. Murmurline#6969
https://codepen.io/murmurline/pen/WNMdROG
-->
<!--41. Pearlie#3536
https://codepen.io/PPcode/pen/XWZVgGP
-->
<!-- 42. 白狐
Codepen: https://codepen.io/baihu7851/pen/vYdrVbK
-->
<!-- 43. 小金#3256
codepen: https://codepen.io/AmoGH357/pen/RwQejyR
-->
<!-- 44. Bumble幫啵#0255
replit: https://replit.com/@nick1092387456/JS-practice#index.js
-->
<!-- 45. Claire#2116
codepen:https://codepen.io/claire-chang-the-bashful/pen/OJvOrMa -->
<!-- 46: huch09#1426
codepen: https://codepen.io/subarashii-huch09/pen/mdxqZQq?editors=1112 -->
<!--47. xuan#0808
coepen:https://codepen.io/xuan0915/pen/VwXxZoq?editors=0011-->
<!-- 48. Neuf#3083
codepen: https://codepen.io/yifanneuf/pen/YzamerG?editors=1111-->