1

I have a question on how this operator works here:

var x = 808 / 60 | 0; // Will return 13
var y = 808 / 60; // Will return 13.466666666666667

Why adding a bitwise OR operator ( | ) here return me a integer?

Sebastián
  • 11
  • 1

0 Answers0