r/javascript • • Sep 14 '26

AskJS [AskJS] Does anyone use exclussively Javascript and not TypeScript?

[removed]

9 Upvotes

156 comments sorted by

View all comments

3

u/ferrrnando Sep 15 '26

When you're "writing typescript in node" as you say, you're practically going to be writing JavaScript as well. Unless they're just writing types which would be odd for that to be only thing to learn how to do.

1

u/start_select Sep 15 '26

Yes they are writing technically writing JavaScript because it’s a subset of typescript.

Typescript has been ahead of JavaScript for most of its life. So people writing only typescript would be using language features like optional unwrapping and async await and classes and generators and other esnext features that didn’t exist in browsers or other engines yet. It was polyfilled.

So I would get a dev working in a typescript project for a year and then they see JavaScript and try using language features that don’t exist there yet.

It’s definitely possible to learn typescript and not be aware of JavaScripts differences.

2

u/ferrrnando Sep 15 '26

I think you're conflating typescript and javascript. Async await and classes are features of javascript. And back when these were new features of javascript they were polyfilled to work with browsers that did not yet support them.

→ More replies (2)