If I'm considering trying to learn JavaScript should I just learn TypeScript instead, I always hear that it's a billion times better. I don't know I've always hated JavaScript the little bit I've played with it.

#asknostr

Reply to this note

Please Login to reply.

Discussion

maybe.

type checking makes for less bugs, libraries that use it are better than those that dont. but its easily bypassed by :any

Yes.

You will anyways need to learn the core concepts of JavaScript. How async works, event loops, patterns/anti-patterns etc. If you are just starting learning then stick to JS and once you are confident then expose yourself to TS. Although you should almost always code in TS. The experience is way better

Yes. I think learning Deno or Typescript will allow you to move faster/make less mistakes.

Vanilla JS is so forgiving that maybe as a beginner you will make mistakes that you don't learn from.