iT邦幫忙

2017 iT 邦幫忙鐵人賽
DAY 14
0
Modern Web

網頁程式設計so easy系列 第 14

Day13 [javaScript練習-1]

http://www.ugrad.cs.ubc.ca/~cs101/2013W2/practice-questions/prejavascriptartlab/

Problem: Write a function that returns a random number in range 0-n
Answer

Problem: Write a function that returns a string of random letters of length n
Answer

Problem: Write a function that returns the sum of the numbers 0-n
Answer

Problem: Write a function that returns the sum of every second number from 0-2n
Answer

Problem: Write a function that returns the sum of every number from (k * 10^0) to (k * 10^(k-1)), where k = n%10;
Answer

歡迎各位有更好的答案提供喔!


上一篇
Day12 [AJAX]
下一篇
Day14 [javascript練習-2]
系列文
網頁程式設計so easy30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言