Code also has emotions. Let's comment only when required.

if( sunRisen) {
// washClothes();
// dryClothes();
// wrapClothers();
manageClothes();
} else {
donothing();
}
if( sunRisen) { manageClothes(); } else { donothing(); }
createBreakfast(config) { 
// TODO: need to pass an optional param for type of salt (white or pink)
const foodPrepared = return startCooking(config);
return foodPrepared;
}
// to check if warning modal should be shown or not shouldShowWarningModal(){ 
return !this.isModalSeen && !this.isValidUser;
}
function getName() { 
// set the default name to 'no name'
const name = this.name || 'no name';
return name;
}

--

--

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