I'm new a newbie to JavaScript and typescipt. Below is my code:
let myObj:Object = { foo: 'bar' };
let strVar:string = myObj.foo; // then it throw an error that "property foo does not exist on type 'Object'"
So why I cannot access Object's properties?