Convert from int to byte in JavaScript
843838Feb 13 2006 — edited Feb 13 2006I have a small piece of code in Java,
int x = 216;
System.out.println((byte)x);
I'd like to convert this to JavaScript form and that means, I want to be able to get the exact answer from this code which is -40. How do I do that?