Reputation: 542
I try to understand the following behavior in java script (node):
const num = 0xffffffff
num // 4294967295
num & num // -1
why num & num is calculated as signed integer and when the variable is define at first time (num = 0xffffffff) its calculated as unsigned
Upvotes: 0
Views: 35