DEV Community

JavaScript General Use Full Number Methods and Properties.

Kate Galushko on September 27, 2022

Some use full number methods of javascript using in the javascript programming. TOSTRING The toString() method returns a number as a string. c...
Collapse
 
matijanovosel profile image
Matija Novosel

Nice article, I'd advise using the markdown syntax highlighting for your code - it makes things a tad nicer, e.g.

const num = 123;

var result = num.toString();
console.log(result);
// output
123

var result1 = (100+23).toString();
console.log(result1);
//output
123
Enter fullscreen mode Exit fullscreen mode

```javascript
const x = 2;
```

Becomes:

const x = 2;
Enter fullscreen mode Exit fullscreen mode
Collapse
 
aliegotha profile image
Kate Galushko

@matijanovosel It looks really nice now. Thank you so much!

Collapse
 
matijanovosel profile image
Matija Novosel

No problem. I didn't know either until recently to tell you the truth, good luck writing new content!

Collapse
 
aliegotha profile image
Kate Galushko

@matijanovosel Thank you so much for pointing it out. I just started my blog here and did not know it does support markdown. I will definitely use this feature in my next posts.