14 lines
363 B
TypeScript
14 lines
363 B
TypeScript
//// [numberPropertyAccess.ts]
|
|
var x = 1;
|
|
var a = x.toExponential();
|
|
var b = x.hasOwnProperty('toFixed');
|
|
|
|
var c = x['toExponential']();
|
|
var d = x['hasOwnProperty']('toFixed');
|
|
|
|
//// [numberPropertyAccess.js]
|
|
var x = 1;
|
|
var a = x.toExponential();
|
|
var b = x.hasOwnProperty('toFixed');
|
|
var c = x['toExponential']();
|
|
var d = x['hasOwnProperty']('toFixed');
|