how to make a vertical array js

JavaScript
var array = ['one', 'two', 'three']
element.textContent = array.join('\n')

Source

Also in JavaScript: