http://www.ugrad.cs.ubc.ca/~cs101/2013W2/practice-questions/prejavascriptartlab/
Problem: Write a function called arraySum that returns the sum of an array
Answer
Problem: Write a function that returns an array of length n populated with random numbers from 0-9
Answer
Problem: Write a function that takes an array and prints out the numbers to the DOM (think of this as the screen if you don't know what the DOM is) using document.write(). Your HTML page should have a single row of numbers
Answer
Problem: Write a function that returns a two dimensional array of length and height n populated with random number from 0-9.
Answer
Problem Write a function that takes a two dimensional array and prints out the numbers to the DOM using document.write(). Your HTML page should have a square of numbers
Answer
歡迎各位提供更好的答案喔!