why is javaScript is not a back end language ? #169376
-
|
i always thought javascript is back-end language cause it adds a fuctionality to the web |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hi bill JavaScript itself is not inherently a backend language because it was originally created to run in the browser for client-side scripting handling things like DOM manipulation, user interaction, and dynamic UI updates. However, with the introduction of Node.js (which runs JavaScript on the server using the V8 engine), JavaScript can now be used for backend development. So the distinction is historical rather than technical — it’s not that JavaScript cannot be backend, but that it wasn’t originally designed for it. In short:
|
Beta Was this translation helpful? Give feedback.
-
|
Some camps consider it unfeasible for larger projects that require heavy CPU computation, long running processes or for parallel processing of data. Async tasks Node does quite well (concurrent != parallel) - but it does not do well with parallel tasks. The lack of types can be problematic on larger projects especially with multiple engineers, etc. hence why Typescript was created. Comparing to other frameworks like asp.net and leptos/axum/rocket for Rust and gin/fiber/echo for Go it simply does not compare when it comes to performance and is quite slow. Now, this may not be an issue depending on your project. If you're building a simple website, not a problem. If you're building a large SaaS application you may want to consider other frameworks. |
Beta Was this translation helpful? Give feedback.
Hi bill
JavaScript itself is not inherently a backend language because it was originally created to run in the browser for client-side scripting handling things like DOM manipulation, user interaction, and dynamic UI updates.
However, with the introduction of Node.js (which runs JavaScript on the server using the V8 engine), JavaScript can now be used for backend development. So the distinction is historical rather than technical — it’s not that JavaScript cannot be backend, but that it wasn’t originally designed for it.
In short: