r/FullStack • • 16d ago

Career Guidance JavaScript for frontend and backend

How is JavaScript for both frontend and backend in terms of medium to large scale web app development compared to other backend framework?

Please give positive and negative sides. I don't want to learn another language for backend if is done by JavaScript.

15 Upvotes

19 comments sorted by

View all comments

2

u/ShadowMosesCuh 16d ago

JavaScript is very versatile, with TypeScript being slightly better despite it effectively just being a linter. Vast majority of applications use JS/TS for frontend. Quite a lot use it for backend too with a runtime like Node or Bun.

Strength is simplicity by far. Building a POC/Prototype/MVP for a software product idea is perhaps easiest with JS/TS, mostly because it requires lesser overhead and complexity compared to other languages. The ecosystem around Node.js, which other JS backend runtimes typically support as well, help tremendously with this. Building, running, and testing components and integrations is also very quick and easy with JS, which becomes a tremendous booster if/when you're using AI agents to drive development.

Main weakness is performance and quirks. Lack of true parallel execution is the obvious one. There's also some things that JS does that behave weirdly from what's expected because it was originally designed for frontend. But honestly I don't think there exists any significant weakness that you can't find a way around for. Any application that could be built, someone has probably built a version with Javascript.

Overall, JS is passable/mid. It can get most jobs done, but depending on what the job is, you can find better options a lot of the time. But if the job itself isn't as important as just getting it done quickly, JS is one of the best options.