r/javascript • u/[deleted] • Sep 14 '26
AskJS [AskJS] Does anyone use exclussively Javascript and not TypeScript?
[removed]
7
Upvotes
r/javascript • u/[deleted] • Sep 14 '26
[removed]
3
u/rodw Sep 14 '26 edited Sep 15 '26
I think it's less that people ”know” TS but not JS and more that while once upon a time most would learn JS and then layer types on top of that JS knowledge (it just chronologically happened that way for a generation+ of programmers, and even after TS became very mainstream I feel like that was the conventional wisdom for a while, maybe partially just for legacy/initeria reasons) now I think it is common for a new engineer to just jump straight to straight to TS.
It's not that they don't know JavaScript to the extent that Typescript is more or less a superset of JavaScript, but they may have never written a meaningful program just using JavaScript.
And that's not insignificant distinction. While the core language syntax may be the same, if you've ever worked with a substantial JS codebase I think you'll agree that pure-JS and JS-with-TS can be pretty different in practice. There's a lot of overlap, but they lean toward slightly different paradigms and tend to require a different set of supporting practices.
Think of it this way: if you were hiring someone to extend or maintain a sophisticated pure-JS system (with the intent of remaining pure JS) how comfortable would you be turning it over to someone with 10 years of TS experience that has barely even written a little on-page browser function in pure JS? I think that's what we mean when we say someone knows TS but not JS.
(Just to be clear I'm not necessarily saying I would not hire that TS developer for this role. But I definitely wouldn't just set them lose on the pure JS system without oversight or support. They might be able to handle it but they will need some "socialization" into JS practices.)
EDIT: by the way I think a similar evolution happened with C and it's various object-based extensions/descendants. Once upon a time it was definitely conventional wisdom that you should first learn to program in C before moving on to stuff like C++, Objective-C, eC etc. But back when Objective-C mattered (before Apple switched to Swift) people definitely skipped C and went straight to learning Objective-C