Is TypeScript slower than JavaScript 1

Is TypeScript slower than JavaScript

JavaScript (and Typescript) are actually pretty performant, courtesy of the insane work done by the v8 team. But, Typescript really doesn't impact that

Here is what the above code is Doing:
1. We’re creating a function called `add` that takes two arguments, `a` and `b`
2. We’re returning the result of adding `a` and `b`
3. We’re calling the `add` function with the arguments `1` and `2`
4. We’re printing the result of the function call to the console

Similar Posts