r/JavaScriptTips • • Nov 27 '21

Daily Javascript Tips 🎉: Use the single pipe operator to floor numbers

Did you know? You can use a single pipe operator to floor float numbers in javascript.

1 Upvotes

1 comment sorted by

1

u/_Fran_O Nov 28 '21

You need to change the output comment to 21