> For the complete documentation index, see [llms.txt](https://js201.gitbook.io/js-101/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://js201.gitbook.io/js-101/console/functions.md).

# Functions

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[ functions](/js-101/functions.md) chapter.

### 📝 Task:

* [ ] Write a program to create a function named `isOdd`that passes a number `45345` as an argument and determines whether the number is odd or not.
* [ ] Call this function to get the result. The result should be in a boolean format and should return `true` in `console`.&#x20;

### 💡 Hints:

* Visit the [functions](/js-101/functions.md) chapter to understand functions and how to create them.
