Im creating a simple function in type script but when i try to run the code in vsc it throws me with this error SyntaxError: Unexpected token ‘:’ why ?
>Solution :
Because you’re executing TypeScript with node. node executes JavaScript. TypeScript must first be transpiled into JavaScript with tsc.
See TypeScript Tooling in 5 minutes
