Write a multiply
function that finds the product of two numbers.
multiply(5, 7) => 35
Write a function that takes in a number and returns true
if the number is even and false
if the number is odd (Hint: Look up the %
operator).
isEven(4) => true
Write a function that swaps two values at two different indexes in an array.
swap(["moe", "larry", "curly"], 0, 2) => ["curly", "larry", "moe"]
Write a function that generates a random number in a specified range (Hint: Look up Math.random()).
getRand(5, 10) => 8 (any number between 5 and 10)
Write a function that generates an array of specified length that contains random numbers from 1 to 100.
randArr(3) => [23, 11, 82]