I want to create a string in JavaScript that contains all ascii characters. How can I do this?
Just loop the character codes and convert each to a character:
var s = ''; for (var i=32; i<=127;i++) s += String.fromCharCode(i);