I have the following typescript code :
let a; a = "number"; let t = a.endsWith(\'r\'); console.log(t);
Since a is not declared