I’ve been using JavaScript for a very long time. Over a decade to be exact. So in a lot of ways, I can get stuck in old habits. One, in particular, using .join("") to turn an array into a string. While this is a great, and ideal tool for most cases, it’s always good to know it’s not the only one. In regard, I’d like to introduce toString().

const testArray = ["One", "Two", "Three"];

testArray.toString() // One,Two,Three