mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
441 B
TypeScript
18 lines
441 B
TypeScript
//// [tests/cases/conformance/types/primitives/string/stringPropertyAccess.ts] ////
|
|
|
|
//// [stringPropertyAccess.ts]
|
|
var x = '';
|
|
var a = x.charAt(0);
|
|
var b = x.hasOwnProperty('charAt');
|
|
|
|
var c = x['charAt'](0);
|
|
var e = x['hasOwnProperty']('toFixed');
|
|
|
|
//// [stringPropertyAccess.js]
|
|
"use strict";
|
|
var x = '';
|
|
var a = x.charAt(0);
|
|
var b = x.hasOwnProperty('charAt');
|
|
var c = x['charAt'](0);
|
|
var e = x['hasOwnProperty']('toFixed');
|