app script append two list

JavaScript
output.concat(titles);
output = output.concat(titles);
Source

Also in JavaScript: