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








import { isOdd } from "";

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