I'm trying some simple Javascript in the new Visual Studio Code. With the following js code:
var obj = { abc: "test" };
obj.foo = "bar";
I get this error:
Property 'foo' does not exist on type '{ abc: string; }'.
However it's a js file rather than ts. Isn't the code valid in Javascript?