title: What does parameter in Array toString do?
body: <p>I saw a code like this. I looked up MDN but there's no mention about toString having parameters. What does 3 do inside n.toString(3)?</p>
  <pre><code>function solution(n) {
    n = n.toString(3).split('').reverse().join('')
    return parseInt(n, 3)
  }
  
  
  
  </code></pre>