180
rated 0 times
[
187]
[
7]
/ answers: 1 / hits: 36318
/ 11 Years ago, sun, june 2, 2013, 12:00:00
I'm writing JavaScript unit tests and I need to create a string of length 65536.
What's the best way to do this in JavaScript?
Currently I'm using:
var myString = '';
for (var i = 0; i <= 65535; ++i) {
myString += 'x';
}
More From » string