DEV Community

Discussion on: Flow control, short-circuit expressions and functional programming in JavaScript

 
daslaf profile image
Osman Cea

Again, this is because you care about the result of the function. My take is: use statements for side effects and expressions for pure functions.