r/programminghorror • • Jul 24 '26

Typescript javascript without braces

(technically typescript)

50 Upvotes

12 comments sorted by

View all comments

Show parent comment

4

u/my_new_accoun1 Jul 24 '26

yeah but there only problem (as I later realised) is that without the braces JavaScript doesn't know where the elseif/else is supposed to be

so I ended up not being able to use this masterpiece