Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Largest and Smallest Possible Numbers</title> </head> <body> <script> let a = Number.MAX_VALUE; document.write(a + "<br>"); // 1.7976931348623157e+308 let b = Number.MIN_VALUE; document.write(b + "<br>"); // 5e-324 let x = Number.MAX_VALUE * 2; document.write(x + "<br>"); // Infinity let y = -1 * Number.MAX_VALUE * 2; document.write(y); // -Infinity </script> </body> </html>