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