RisingStack / node-style-guide

A mostly reasonable approach to JavaScript - how we write Node.js at RisingStack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Programmatic building of strings

vipero07 opened this issue · comments

Your two examples are not equal, when using join you end up with an empty

  • whereas in the concat example you wouldn't. You'd need to concat the
  • and
  • in the for loop and do a .join('') to have the same result.