function show(x, y) {
  document.write("<tr><td>" + x + "<td>" + (x+y));
}

document.write("<table border>");
document.write("<tr><td>X<td>X+10");

show(123456789, 10);
show(Math.pow(2,31)-1, 10);
show(-Math.pow(2,31), 10);

document.write("</table>");