So drucken Sie in derselben Zeile in JavaScript

var result  = '';
for(var i = 1; i < 11; i += 1) {
  result = result + i;
}
console.log(result)
Frail Ferret