---
# System prepended metadata

title: "\U0001F3C5 5/18(三) 每日 JS 刷題任務 - 混合題"
tags: [公益程式體驗營 - 2022]

---

---
tags: 公益程式體驗營 - 2022
---

# 🏅 5/18(三) 每日 JS 刷題任務 - 混合題


### 題目一：星星顯示
``` =JavaScript
// input 輸入
createStar(1)
createStar(3)
createStar(5)
// output 輸出
"*"
"***"
"*****"
```

### 題目二：反轉陣列
``` =JavaScript
// input 輸入
reverseAry([7,8,9])
reverseAry(["black","white","red"])
reverseAry([{name:"mike"},{name:"John"}])
// output 輸出
[9,8,7]
["red","white","black"]
[{name:"John"},{name:"mike"}]
```

### 題目三：陣列轉字串
``` =JavaScript
// input 輸入
aryToString([7,8,9])
aryToString(["black","white","red"])
aryToString([true,false,true])
// output 輸出
"9,8,7"
"red,white,black"
"true,false,true"
```






### 題目四：進階題，不適合新手：雙 for 迴圈
```=JavaScript
// input 輸入
multiplication(3)
multiplication(5)
// output 輸出 為字串格式
//  multiplication(3)
2x1=2
2x2=4
3x1=3
3x2=6
3x3=9

//  multiplication(5)
2x1=2
2x2=4
3x1=3
3x2=6
3x3=9
4x1=4
4x2=8
4x3=12
4x4=16
5x1=5
5x2=10
5x3=15
5x4=20
5x5=25

```

## 回報流程

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

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

<!-- 解答：  -->


回報區
---

<!-- 0. Bingbingboom（回報範例，請使用註解回報）
答案：（可直接撰寫答案）
Codepen：https://codepen.io/Bingbingboom/pen/jOBZVWq
-->

<!-- 1. Bruno Yu
答案：（可直接撰寫答案）
Codepen：https://codepen.io/bruno-yu/pen/xxYEOOj?editors=0011
-->

<!-- 2. yunyun
答案：
Codepen：function multiplication(num) {
    for (i = 2; i < num; i++) {
        for (j = 1; j < num; j++) {
            return `${i}*${j}=${i * j}`;
        }
    }
}
-->

<!-- 3. CloThEs
Codepen：https://codepen.io/bogwdnxx-the-sans/pen/GRQWdwg
-->

<!-- 4.IreneLee
 codepen:
https://codepen.io/ntjtcxpt-the-animator/pen/oNEZyNK?editors=0011
-->

<!-- 5.Rex Chu
 codepen:
https://codepen.io/rex_chu/pen/mdXWLgJ
-->

<!-- 6.Jason Chen
 codepen:
https://codepen.io/jason60810/pen/OJQpEyb
-->

<!-- 7.pipi
 codepen:
https://codepen.io/pipiyy13/pen/ExQjjPO
-->

<!-- 8. Chi
Codepen: https://codepen.io/YoChi84/pen/jOZBKYK 
-->

<!-- 9. Katie
Codepen: https://codepen.io/Katie24/pen/XWZpLGg
-->


<!-- 10. yuyu#6310
Codepen: https://codepen.io/yuyu0905/pen/MWQpXzL?editors=0012
-->

<!-- 11. bakiii
  https://codepen.io/aki168/pen/gOvmKqG-->
  
<!--  12. hw#0715
https://codepen.io/Lh
i/pen/OJQpwLv  
-->

<!-- 13. su#7798
codepen: https://codepen.io/wc-su/pen/qBxrKzZ
-->

<!-- 14. Noy
https://codepen.io/MochiCodingPen/pen/abqJjWm
-->

<!-- 15. Art
https://codepen.io/ss97202tw/pen/KKQWBeK?editors=0011
-->

<!-- 16. Aaron 
Codepen : https://codepen.io/narrowd4c/pen/GRQJoJP
-->

<!-- 17. 楓之聲#6945
https://codepen.io/sshane258/pen/rNJyrqM  
-->

<!-- 18. hsiuhsiu
https://codepen.io/hsiuhsiu/pen/mdXWjLj?editors=0012
-->

<!-- 19. Stanley#3825
https://codepen.io/sean_1215/pen/JjpWBJE?editors=0012
-->

<!-- 20. Peng
https://codepen.io/peng-027/pen/gOvmBaM?editors=1011
-->

<!-- 21. Knn#0492
https://codepen.io/Knn_84/pen/GRQWYoZ?editors=1010
-->

<!-- 22. han#9437
https://codepen.io/qnrxylcw-the-reactor/pen/ZEreqrV
-->

<!-- 23. Xiang#5313
https://codepen.io/snorlaxxu/pen/xxYqyMG?editors=1010
-->

<!-- 23. andersonshen#4675
https://codepen.io/luxyenni-the-bold/pen/LYQWXYR
-->

<!-- 24. Tuhacrt#0008
Codepen: https://codepen.io/Tuhacrt/pen/VwQpVpz?editors=0011
-->

<!-- 25. Chaco#2993
Codepen: https://codepen.io/chaco-wang/pen/OJQpaOB?editors=1011
-->

<!-- 26. lyle#8123
Codepen: https://codepen.io/tomys/pen/qBxrGRe?editors=0011
-->

<!-- 27. WilliamChou#7375
Codepen: https://codepen.io/williampo78/pen/WNMpqRL
-->

<!-- 28. Lina Chen
Codepen: https://codepen.io/LinaChen/pen/oNEZrPo
-->

<!-- 29. bonnieli1414#4906
Codepen: https://codepen.io/bonnieli1414/pen/JjpNPGV?editors=0011
-->

<!-- 30. 小鹿Kerwin#5730
Codepen: https://codepen.io/tkoleo84119/pen/OJQpwod
-->

<!-- 31. Chaoci#2460
Codepen: https://codepen.io/gmailchao/pen/wvydagd?editors=0010
-->

<!-- 32. Joyce
 Codepen:https://codepen.io/joycehuang/pen/wvydaWJ
-->

<!-- 33. Jia-Hong Chen#3863
 Codepen:https://codepen.io/iloveleon19/pen/ExQmjJY?editors=0010
-->

<!-- 34. Mojito#6002
 codepen: https://codepen.io/vu3xk41997/pen/LYQyNqp
-->

<!-- 35. Josh Chen#4552
 codepen: https://codepen.io/hiphop825/pen/vYdmmMy?editors=0010
-->

<!-- 36. KuoMin#4931
 codepen: https://codepen.io/KuoMin/pen/YzeVroG
-->
<!--  37.Pearlie#3536
 codepen: https://codepen.io/PPcode/pen/OJQmzxK
-->

<!--  38. TaoDoris#5230
 codepen: 
https://codepen.io/peetaoting/pen/RwQpXQm?editors=0011
-->

<!-- 39. shujhen#7734
 Codepen：https://codepen.io/shujhen/pen/RwQVNov
-->

<!-- 40. Murmurline#6969
 Codepen：https://codepen.io/murmurline/pen/LYQyXXy
-->

<!-- 41. WANGQQ
Codepen:
https://codepen.io/stevetanus/pen/BaYRGpr
-->

<!-- 42. 亞芽#1185 
Codepen:https://codepen.io/sanahsu/pen/RwQVyVE?editors=0011
-->

<!-- 43. ChaoChao
https://codepen.io/EmiiilyJ/pen/eYVWaRK
-->

<!-- 44. Easton#3863
Codepen: https://codepen.io/EastonIsCodingNow/pen/abqwOYX
-->

<!-- 45. Cheng-Yu#1813
Codepen: 
https://codepen.io/ball77111/pen/gOvRPqV?editors=0011
-->


<!-- 46. SASIMI#5099
Codepen: 
https://codepen.io/sashimi1327/pen/YzeQqez
-->

<!--47.Vito#7797
https://codepen.io/Vito_Yang/pen/RwQgGmO?editors=0011
-->

<!--48.Arista
https://codepen.io/arista-hsieh/pen/abqwwwz
-->

<!-- 49. 白狐
Codepen：https://codepen.io/baihu7851/pen/QWQgJoY
-->

<!-- 50. Vera#5592
Codepen：https://codepen.io/skvera/pen/eYVWpvY
-->

<!-- 50. Charlotte Lee
Codepen：https://codepen.io/charlotte-lee/pen/GRQvqNr?editors=0012
-->

<!-- 51. Mitour#0672
 codepen: https://codepen.io/mitour/pen/gOvxLyr-->
 
 
 <!-- 52. RayChen#6088
 codepen: https://codepen.io/raychen1996/pen/ZErJZYd
-->

<!-- 53. Greta#0837
codepen: https://codepen.io/gretali/pen/YzerQqK
-->

<!-- 54. Sussu#4211
codepen: https://codepen.io/yatiti84/pen/bGLYQNV
-->

<!-- 55. EllieLo#9809
codepen: https://codepen.io/ellie-lo/pen/abqqrBO?editors=0112
-->

<!-- 56. 小金#3256 
codepen: https://codepen.io/AmoGH357/pen/WNMaevb
-->

<!-- 57. Yanyan#3555 
codepen: https://codepen.io/wei-yi-lee/pen/NWYvXgr
-->

<!-- 58. Ayre#0016
codepen: https://codepen.io/yichunlin09/pen/VwXMzNO?editors=0011
-->

<!-- 59. Claire#2116
codepen：https://codepen.io/claire-chang-the-bashful/pen/RwMLBwV -->

<!-- 60: huch09#1426
codepen: https://codepen.io/subarashii-huch09/pen/mdxqZQq?editors=1112 -->

<!--61. xuan#0808
  codepen:https://codepen.io/xuan0915/pen/qBoxGJM?editors=0011-->
  
<!-- 62. Neuf#3083
 codepen: https://codepen.io/yifanneuf/pen/PoRMPYB?editors=1111-->