We're a place where coders share, stay up-to-date and grow their careers.
if (condition) { return true; } return false;
Please don't do this 😕 It's verbose for no reason. You can accomplish the same with just return condition;.
return condition;
cool! yes so much simple
function isPalindrome(num: number): boolean { return num === reverseInteger(num); }
thanks!
Please don't do this 😕 It's verbose for no reason. You can accomplish the same with just
return condition;
.cool! yes so much simple
thanks!