TypeScript is better for larger, scalable projects thanks to static typing, while JavaScript is more flexible for quick scripts and broad compatibility..........
Javascript is more flexible but Typescript helps to build a more robust project, now in the AI days I would recommend go for Typescript without any doubt because AI will understand better your code
if ur just hacking together small puppeteer scripts to fill some forms then ts is overkill . but since ur doing mern u probably want a real career or to build something that doesn't break every time u change a variable
i resisted ts for a long time too thinking it was just extra work for nothing . then we started building a custom ad-monitoring saas and the js codebase turned into a pure nightmare once we scaled . refactoring without types is like walking through a minefield at night
my take: learn ts for the foundation . it handles big state and complex apis way better . for your burner automation scripts or quick scrapers just stick to vanilla js . no point adding a build step for a script that lives for 2 days
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.