Art of styling code you all need to know

Bad Style
Good Style
Bad Style
Good Style
Declare the functions above the code
Code first, then helper functions
// Single line comment
let s = 'Progamming Hero!'; // assign string literal to variable s
/*
Line 1
Line 2
*/
let todaysDate = new Date();

--

--

I am a front-end developer. I love to know about new technologies.

Love podcasts or audiobooks? Learn on the go with our new app.

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
Amina Anika

Amina Anika

I am a front-end developer. I love to know about new technologies.