how to print output in same line in javascript code example
Example: how to print in a same line in javascript
var result = '';
for(var i = 1; i < 11; i += 1) {
result = result + i;
}
console.log(result)
var result = '';
for(var i = 1; i < 11; i += 1) {
result = result + i;
}
console.log(result)