The Startup
Published in

The Startup

JavaScript Best Practices— Variable Declarations, IIFEs, and Yoda

Photo by Ryan Zazeski on Unsplash

Put Variable Declarations to be at the Top of Their Scope

--

--

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +760K followers.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store