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
歡迎各位有更好的答案提供喔!