3
4
-1
1
25
10
15
3
2
3
78
13
Instructor solution
You may exit out of this review and return later without penalty.
Week 3 Review
1.Complete the function lengthOfString(aString) that takes a string, aString, as the argument. The function should return a number that is the number of characters in aString.
2.Complete the function divisibleByThree(num) that accepts a number, num, as the only argument. The function should determine whether the number is divisible by 3, and return either true or false accordingly.
3.Let's pretend the JavaScript Math.min() function doesn't exist. Complete the following function calculate(a, b) so that the function returns the minimum of its two received numbers.
4.Write a function called multiply that takes in 3 numbers, and returns the product of the 3 numbers multiplied together.
5.Complete the function oneToNum that takes in an integer as a parameter num and prints all integers from 1 to that number. Next to each one, it should print whether it is even or odd.
6.Complete the function countOfLowercaseAs that takes in a string as a parameter aStr and returns the number of times the character a appears in the string.
7.Complete the function calculate so that it offers the four basic arithmetical operations: addition, subtraction, multiplication, and division.
You may exit out of this review and return later without penalty.