A single function should not perform all functions. Sooner or later, you'll find yourself performing identical tasks across multiple functions. The way to proceed is to create small, generic utility functions that perform a single task. A good piece of code should be simple to extend without rewriting the core.
Lauren Cook-McKay, Director of Marketing & Content Divorce Answers
Alexandra Tanya is the Co-Founder & Creative Director at Miss Amara, Co-Founder & CXO at Elevate Digital
Gerrid Smith, Chief Marketing Officer at Joy Organics
Even if you neglect to use semicolons in your code, most modern browsers will let you get away with it. Do not become complacent and fall into the habit of doing this on a regular basis. It's a terrible habit to get into, and it'll lead to a lot of difficulties down the road. Worse yet, it can be difficult to locate a problem you've caused by failing to use the right semicolon tags.
Darshan Somashekar, Founder & CEO, Solitaired, Co-Founded drop.io, a media-sharing, VC-backed startup that was acquired by Facebook in 2010.
Andrew Helling, Editor-In-Chief and Owner REthority
Tyson Stevens, Founder at EduRef
It is generally an excellent practice to include all scripts on your website at the bottom. There is a rationale for this. When web browsers begin loading a script, they will halt and will not continue until the complete file has been loaded. This means that the end user's browser will take longer to respond, giving the appearance that the page is inactive. That is why it is a good practice to set your scripts at the bottom of your page so that the remainder of your content can load before the scripts are executed. Generally, you want to position your scripts directly above your HTML file's closing body tag.
Edward Mellett, Founder/Co-Founder WikiJob.co.uk
Working with strings has never been easier than it is now, thanks to template literals. There will be no more concatenation of large strings. We utilize the backtick () character instead of single (') or double () quotes to generate a template literal. This will create a new string that we may use whatever we want.
Chris Nddie, Co-Owner & Marketing Director ClothingRIC
Will Cannon, CEO of Signaturely