Hi I am learning typescript.
I have in my code.
var name:string=\"Hello world\";
console.log(name);
while compile time I am getting thi
Your variable name
has already been declared somewhere in the same block of code. And it is not allowed.
This is exactly the meaning of the error message.
The cause being that, you tried to declare this particular variable on global scope, and here name
is already defined for some technical reason, for more details see : https://github.com/Microsoft/TypeScript/issues/9850
(Thanks @betadeveloper )