Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Precision Problem with Integers</title> </head> <body> <script> var x = 999999999999999; document.write(x + "<br>"); // 999999999999999 var y = 9999999999999999; document.write(y); // 10000000000000000 </script> </body> </html>