0

Is order of operations different when using mod? Example:

    //time[0] = '11', dif=4
    console.log( (time[0] - dif + 24) % 24 );           //prints 7
    console.log( (time[0] + 24 - dif) % 24 );           //prints 16
Abhishek Patel
  • 587
  • 2
  • 8
  • 25

0 Answers0