# The toString() Method: Please explain me this i am always confussed

**URL:** <https://forum.freecodecamp.org/t/the-tostring-method-please-explain-me-this-i-am-always-confussed/114412>\
**Category:** General\
**Created:** [May 11, 2017, 1:14am UTC](https://forum.freecodecamp.org/t/the-tostring-method-please-explain-me-this-i-am-always-confussed/114412 "2017-05-11T01:14:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjulam83](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@manjulam83](https://forum.freecodecamp.org/u/manjulam83)\
**Post date:** [May 11, 2017, 1:14am UTC](https://forum.freecodecamp.org/t/the-tostring-method-please-explain-me-this-i-am-always-confussed/114412/1 "2017-05-11T01:14:13Z")

</div>

I am learning Javascript with FCC and also from w3school i am not clear with The toString() Method.  
can anyone help me.

thanks& regards,  
Manjula

---

<div class="post-metadata">

**Author:** ![owel](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/owel/32/48425_2.png) [@owel](https://forum.freecodecamp.org/u/owel)\
**Post date:** [May 11, 2017, 1:25am UTC](https://forum.freecodecamp.org/t/the-tostring-method-please-explain-me-this-i-am-always-confussed/114412/2 "2017-05-11T01:25:32Z")

</div>

It converts numbers to strings, or arrays to a string representation (comma separated value)

```auto
num = 3;
num + num; // equals the number 6
num.toString() + num.toString(); // equals "33"

arr = [1,2,3,4,5]; 
arr.toString(); // equals "1,2,3,4,5" 

```

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:56pm UTC](https://forum.freecodecamp.org/t/the-tostring-method-please-explain-me-this-i-am-always-confussed/114412/3 "2021-01-17T20:56:40Z")

</div>

Closed on January 17, 2021, 8:56pm UTC


