// test for shift var a = (2<<2); var b = (16>>3); var c = ((-1&0xFFFFFFFF) >>> 16); result = a==8 && b==2 && c == 0xFFFF;