1 // Number definition from http://en.wikipedia.org/wiki/JavaScript_syntax
2 a = 345; // an "integer", although there is only one numeric type in JavaScript
3 b = 34.5; // a floating-point number
4 c = 3.45e2; // another floating-point, equivalent to 345
5 d = 0377; // an octal integer equal to 255
6 e = 0xFF; // a hexadecimal integer equal to 255, digits represented by the letters A-F may be upper or lowercase
8 result = a==345 && b*10==345 && c==345 && d==255 && e==255;