34 lines
478 B
TypeScript
34 lines
478 B
TypeScript
//// [literals1.ts]
|
|
var a = 42;
|
|
var b = 0xFA34;
|
|
var c = 0.1715;
|
|
var d = 3.14E5;
|
|
var e = 8.14e-5;
|
|
|
|
var f = true;
|
|
var g = false;
|
|
|
|
var h = "";
|
|
var i = "hi";
|
|
var j = '';
|
|
var k = 'q\tq';
|
|
|
|
var m = /q/;
|
|
var n = /\d+/g;
|
|
var o = /[3-5]+/i;
|
|
|
|
//// [literals1.js]
|
|
var a = 42;
|
|
var b = 0xFA34;
|
|
var c = 0.1715;
|
|
var d = 3.14E5;
|
|
var e = 8.14e-5;
|
|
var f = true;
|
|
var g = false;
|
|
var h = "";
|
|
var i = "hi";
|
|
var j = '';
|
|
var k = 'q\tq';
|
|
var m = /q/;
|
|
var n = /\d+/g;
|
|
var o = /[3-5]+/i;
|