5. Given 4 numbers (passed in as parameters) write a function that returns the average of these numbers 6. Write a funct
Posted: Fri May 20, 2022 1:03 pm
5. Given 4 numbers (passed in as parameters) write a function that returns the average of these numbers 6. Write a function that given 2 numbers returns which one is greater. 7. Write a simple 'for' loop in javascript. Iterate through numbers 1-10 and print each number to the console 8. Write a guessing game using HTML, CSS and Javascript. In HTML there should be an input field for the user to guess a number and a button to check if the number is correct. In javascript write a function that checks whether the input given is the correct number. You can decide what the number is in your javascript code so it's up to you.