Property 'kName' does not exist on type '{}' 1

Property ‘kName’ does not exist on type ‘{}’

//You can assign the any type to the object:

let bar: any = {};
bar.foo = "foobar"; 

Here is what the above code is Doing:
1. We create a variable called bar and assign it to an empty object.
2. We then add a property called foo to the bar object and assign it to a string.

Similar Posts