Typescript variable syntax error on terminal

i try to learn TypeScript on Visual Studio Code. But i get an sim error that i don't understand beacuse of defining variable. I'm define as that:

let year:number = 2015

I get a syntax error on terminal beacuse i'm put a colon and write the variable type after the variable name.

error

How can i correct this error?

1 answer