Espruino/tests/test_integer_literals.js
Rick Waldron 60ba171690 Fix gh-174, gh-175. Complete integer literal
This adds the X and B versions of hex and binary integer literals

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2014-01-13 17:48:28 -05:00

6 lines
105 B
JavaScript

console.log( 0x01 === 1);
console.log( 0X01 === 1);
console.log( 0b01 === 1);
console.log( 0B01 === 1);