Javascript examples for Language Basics:Introduction
The number type can represent both integer and floating-point numbers.
<!DOCTYPE HTML> <html> <head> <title>Example</title> </head> <body> <script type="text/javascript"> var daysInWeek = 7;//from w w w . j a v a 2 s . c o m var pi = 3.14; var hexValue = 0xFFFF; </script> </body> </html>