MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/11pgzy1/this_is_how_it_works_right/jby0fih/
r/badcode • u/Kiwuthegamer • Mar 12 '23
40 comments sorted by
View all comments
9
I wonder how the return variable is used in the rest of the code. I imagine it like
Var isDone = or(isTaskDone, isNothingLeftToDo) If(isDone == ""){ Return false; } Return true;
6 u/OriAfias Mar 12 '23 if (isDone == "true" || isDone == "truetrue") return true 2 u/[deleted] Mar 12 '23 More likelyconsole.log(or(isTaskDone, isNothingToDo));Of course console.log(isTaskDone, isNothingToDo); would be far more useful.
6
if (isDone == "true" || isDone == "truetrue") return true
2
More likely
console.log(or(isTaskDone, isNothingToDo));
Of course console.log(isTaskDone, isNothingToDo); would be far more useful.
console.log(isTaskDone, isNothingToDo);
View all comments
9
u/fiddz0r Mar 12 '23
I wonder how the return variable is used in the rest of the code. I imagine it like