Skip to content

Instantly share code, notes, and snippets.

@ruddha2001
Created June 24, 2020 10:32
Show Gist options
  • Save ruddha2001/840711297b43dd18b89604944a7955af to your computer and use it in GitHub Desktop.
Save ruddha2001/840711297b43dd18b89604944a7955af to your computer and use it in GitHub Desktop.
import {DigitsInNumber} from "./digitsInNumber"
console.log(DigitsInNumber.countDigits(100)); // Double Digit
console.log(DigitsInNumber.countDigits("one hundred")); // Hey, we need a number!
console.log(DigitsInNumber.countDigits(-100)); // We'll ignore negative numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment