- JavaScript function that takes in two integers and display the larger.
2.Write a JavaScript for loop that will iterate from 0 to 20. For each iteration, it will check if the current number is odd or even, and display a message to the screen. Sample Output :
"1 is odd"
"2 is even"
3.Write a JavaScript function which iterates the integers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz"