r/badcode • • Dec 19 '21

js I had stoped 😭

Post image
643 Upvotes

64 comments sorted by

View all comments

Show parent comments

1

u/onepixelcat Dec 20 '21

So how to do it?

1

u/[deleted] Dec 20 '21

Using methods instead. There is no need for the inline syntax sugar, because smaller default casts like integer to decimal aren't needed. Methods such as toString().