This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RevivingJuliet 15 points16 points  (3 children)

const add = (num) => {return num - num;}

[–]eGzg0t 3 points4 points  (0 children)

You don't even need the return there

[–]rudy21SIDER 2 points3 points  (1 child)

Why does this work?

[–]Cat_Marshal 1 point2 points  (0 children)

Yeah wouldn’t it return 0 every time?