4 ms·
I only know a little bit of JavaScript, what's the best way to learn TypeScript? Read Eloquent JavaScript then some TS related stuff? Or is there a TypeScript f
by zeusly 9y ago
I only know a little bit of JavaScript, what's the best way to learn TypeScript? Read Eloquent JavaScript then some TS related stuff? Or is there a TypeScript for Dummies that don't know JS?
- munchor 9y agoIf you want a quick overview, then https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html https://www.typescriptlang.org/docs/handbook/typescript-in-5.... If you want the full immersion, then read the entire Handbook: https://www.typescriptlang.org/docs/handbook/basic-types.html https://www.typescriptlang.org/docs/handbook/basic-types.htm....
- Scarbutt 9y agoFor anything serious you are going to need to know JS, so yes, level up your JS first (up to ES5 is good enough) before switching to TS.
- josephst18 9y agoI learned JS through Eloquent JavaScript and did the various projects in the book, then changed all my .js files to .ts, turned on all of TypeScript's checks, and started adding types to my files. I'd recommend doing a similar path; transitioning existing code to TS is IMO a better way to learn it than from scratch. TypeScript Deep Dive is a great resource.
- stuffedBelly 9y agoJavascript the Good Parts by Crockford is a great book for people who already know a bit of JS but want to learn it proper and deeper.
- rickdg 9y agoUse it as a javascript syntax checker, it's probably the easiest to work with right now. And, when you learn more javascript, you may eventually take a look at actual typescript.
- sleazebreeze 9y agoOne way of learning TypeScript would be to fork a straightforward open source project, add type information and make the whole thing work with TS.
- smt88 9y agoThe TypeScript compiler is strict and descriptive. You can honestly just learn JS and then mess around with TypeScript until your code compiles. Being good at JS is a requirement, of course.