mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
465 B
TypeScript
18 lines
465 B
TypeScript
//// [tests/cases/conformance/types/primitives/number/numberPropertyAccess.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|
|
var x = 1;
|
|
var a = x.toExponential();
|
|
var b = x.hasOwnProperty('toFixed');
|
|
var c = x['toExponential']();
|
|
var d = x['hasOwnProperty']('toFixed');
|