DEV Community

Discussion on: Intro to TypeScript

Collapse
 
victor_kenneth3 profile image
Victor.kenneth💡🌍

I suppose the string type just outside the function parameters denote the function as a string?

Collapse
 
gautemeekolsen profile image
Gaute Meek Olsen

It denotes that the function should return a string.

Thank you for the question. I'll edit the article to make it more clear :)