Combining strings in JavaScript has always been a bit messy. It involves a lot of quotation marks and plus signs, and it was almost always an exercise in trial and error:
When you ran the code, the spacing may be off. You forgot to close a quotation mark, so the entire output would look funky. If there is a line break, wellโฆyou had to Google to see what โฆ
Keep reading with a 7-day free trial
Subscribe to KIRUPA ๐ to keep reading this post and get 7 days of free access to the full post archives.