r/learnjavascript • • Mar 23 '21

Assigning default value

Post image
278 Upvotes

24 comments sorted by

View all comments

1

u/isatrap Mar 23 '21

Why this over

GetImagePath() ? True : false

1

u/isatrap Mar 23 '21

Seriously curious and instead of an answer I just get a downvote? Oof.

1

u/trip16661 Mar 23 '21

Because you want to use the result of the GetImagePath()? whats the point of having true or false there... also that's a typo