perform some bitwise operation... I cant understand what it is doing tho, can someone explain what it is?
let obj = { len: number; value: number }
let res = obj & 1
obj = obj >> 1
What on earth does this code do? And when should this type of approach be used?
Is it safe to assume that res value will ALWAYS be 0?
Обсуждают сегодня