Last updated 2 years ago
Was this helpful?
A function is a block of code designed to perform a specific task and executed when "something" invokes it. More info about functions can be found in the chapter.
Write a program to create a function named isOddthat passes a number 45345 as an argument and determines whether the number is odd or not.
isOdd
45345
Call this function to get the result. The result should be in a boolean format and should return true in console.
true
console
Visit the chapter to understand functions and how to create them.