we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to print in a same line in javascript"
Alana
05 Sep 2018
1var result  = '';
2for(var i = 1; i < 11; i += 1) {
3  result = result + i;
4}
5console.log(result)