We will convert this negative decimal to binary with JavaScript built-in functions. But we will take only 8 bits of the result. Code:
(-88>>>0).toString(2).slice(24)
-88 in binary is 10101000.
2) 285+3=288 -288
We will convert this negative decimal to binary with JavaScript built-in functions. But we will take only 16 bits of the result. Code:
(-288>>>0).toString(2).slice(16)