Deno.js Tutorial to Check if Given Number is Odd or Not Using isOdd Module in TypeScript Full Project For Beginners

 

 

🦕 isOdd

 

 

a deno module to check if a given number is an odd number

 

 

Usage

 

 

 

app.ts

import { isOdd } from "https://raw.githubusercontent.com/ajimae/isOdd/master/mod.ts";

var numberOne = 3;
const checkOne = isOdd(numberOne);
console.log(checkOne); // true

var numberTwo = 8;
const checkTwo = isOdd(numberTwo);
console.log(checkOne); // false
deno run app.ts

Leave a Reply