Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Numbers</title> </head> <body> <script> // Creating variables let x = 2; // integer number let y = 3.14; // floating-point number let z = 0xff; // hexadecimal number // Printing variable values document.write(x + "<br>"); document.write(y + "<br>"); document.write(z); </script> </body> </html>