qaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years ago-Wall ain't alllemmy.worldimagemessage-square24linkfedilinkarrow-up1343arrow-down115
arrow-up1328arrow-down1image-Wall ain't alllemmy.worldqaz@lemmy.world to Programmer Humor@lemmy.mlEnglish · 2 years agomessage-square24linkfedilink
minus-squareLimitless_screaming@kbin.sociallinkfedilinkarrow-up14arrow-down1·2 years agoFunction is changing a global variable, the global variable is checked after every call to the function. That’s your return value.
minus-squareqaz@lemmy.worldOPlinkfedilinkarrow-up12arrow-down1·edit-22 years agoI spent 3 hours debugging the serialization code to find out it the crash was because the function didn’t have a return statement.
minus-squareLimitless_screaming@kbin.sociallinkfedilinkarrow-up10·2 years agoSorry, cannot relate; Everything is a boolean when you’re using JavaScript.
minus-squareekky43@lemmy.dbzer0.comlinkfedilinkarrow-up4·2 years agoThat’s… Terrible. Truly the stuff of nightmares!
Function is changing a global variable, the global variable is checked after every call to the function. That’s your return value.
I spent 3 hours debugging the serialization code to find out it the crash was because the function didn’t have a return statement.
Sorry, cannot relate; Everything is a boolean when you’re using JavaScript.
That’s… Terrible. Truly the stuff of nightmares!
OOP methods?