Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Let instead of const, unnecessary variables, odd spacing, no brackets, inconsistent semicolons. I don't like this.
-
Let isWeekend = true;
Let isTodayLazy = true;
if (isTodayLazy) {
chill();
}
———————————>
let isLazyWeekend = getIsLazyWeekend();
if (isLazyWeekend) {
chill();
}
———————————->
If (getIsLazyWeekend()) {
chill();
}
———————————>
Since it’s always true:
chill(); -
let weekend = true;
let isTodayLazy = weekend;
if(isTodayLazy) chill()
rant