How to convert a number into an array in JavaScript?
Originally Published Here ๐!
To convert a number into an array, we can use the from() method from the global Array object in JavaScript.
TL;DR
// random number
const num = 123456;
// use Array.from() method to convert numbers into an array
// Pass ...
melvingeorge-me.hashnode.dev2 min read