---
title: "Discussion on \"How to convert a specified number into an array of digit's.\" | Hashnode"
description: "Discussion on \"How to convert a specified number into an array of digit's.\". Example -\nI/p - const number = 12345 O/p - [1, 2, 3, 4, 5]\nbefore getting into the solution let's first understand a few methods in javaScript-\nString ()-\nthis method returns its input value in the form of a string.\nconst number = 12345;\nconst str = ..."
url: "https://hashnode.com/posts/how-to-convert-a-specified-number-into-an-array-of-digits/64c034b7f78ae4d94a6f8123"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to convert a specified number into an array of digit's.](https://shriyash.hashnode.dev/how-to-convert-a-specified-number-into-an-array-of-digits?utm_source=hashnode&utm_medium=feed)

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 = ...

Jul 25, 2023 · 2 min read · shriyash.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#javascript-library](https://hashnode.com/tag/javascript-library)

## Written by

[Shriyash Awasthi](https://hashnode.com/@shriyash)

@shriyash

  
[View profile](https://hashnode.com/@shriyash)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
