I recently saw a comparison of how "green" or environmentally friendly programming languages are compared to one another with a ranked list. TypeScript compared pretty poorly and was significantly worse than JavaScript. The graphic I saw was based on a study and seemed to be implying that more green meant better performance. Correct me if I am misinterpreting.
My question is why would TypeScript perform differently than JavaScript? I am not familiar with build processes due to not working with TypeScript but I would assume TS would be transpiled to JS at build time and run as vanilla JS at run time. Is this incorrect? Including a link to a post about the study below for reference in case someone can provide perspective on that.
https://www.linkedin.com/posts/bytebytego_systemdesign-coding-interviewtips-activity-7156542626446344192-nmBJ?utm_source=share&utm_medium=member_desktop