JSFiddle - React, Tailwind, and code Playground

JavaScript

var v = [0xFF, 0xFF];
var i = (((v[0] << 8) | v[1]) << 16) >> 16;
alert(i);