I want to create a string in JavaScript that contains all ascii characters. How can I do this?
Without doing several appends:
var s = Array.apply(null, Array(127-32)) .map(function(x,i) { return String.fromCharCode(i+32); }).join(""); document.write(s);