DEV Community

Discussion on: JavaScript v TypeScript

Collapse
 
jesse1981 profile image
Jesse Bryant

Short & sweet article.

My only comment is while JS doesn't have optional parameters "natively", it can still be treated that way. It won't complain that you didn't provide a value for a parameter, and you can structure you code to see if a parameter is given or undefined.

Does that sway your opinion of it being better than TS? - probably not. Just sayin 😏