How to convert a specified number into an array of digit's.
Example -
I/p - const number = 12345 O/p - [1, 2, 3, 4, 5]
before getting into the solution let's first understand a few methods in javaScript-
String ()-
this method returns its input value in the form of a string.
const number = 12345;
const str = ...
shriyash.hashnode.dev2 min read