Conversion of Number into a string and vice-versa

Conversion of Number into String

When we want to convert number into string we use toString() method but today I teach you a trick which is very simple and straightforward.

Number into string conversion process

String into Number Conversion

If you want to convert string it means when number is inside quotes not text we can convert it explicitly by multiplying 1 to that string.

String into Number Conversion Proces

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahmadullahnikzad

Ahmadullahnikzad

17 Followers

I am a web developer who writes web development content for you to make web development easier