+ 4
Can Javascript be used for frontend and backend development?
What is advantage of using only Javascript?
22 Antworten
+ 5
Martin Taylor You're absolutely right. Maintaining JScript for WSH shouldn't be a problem.
I'm just still reeling from years of untreated PTSD having to support the differences between browsers prior to ES5. Twitch twitch... See... I'm still struggling. Need to find one of those virtual therapists to get me through the Coronavirus shutdowns. 🤪
+ 5
Yes, you can do anything with JS.
As a JS developer, your major focus will be the front-end code. However, the back-end code is important too, so you will want to learn and explore the depth of Node.js.
+ 4
SITHU Nyein 🇲🇲 I have to completely disagree with your first answer as it lacks any real context about anything consistent with the modern Javascript experience today.
Your second response pulls a complete 180 degree reversal on JS which seem to highlight some very high level general points as positives for Javascript.
Your two responses are polar extremes presented with great confidence, yet they appear to lack any real substance reflecting much understanding or experience with Javascript or with many of the alternatives listed.
I'm honestly not sure what the purpose of your responses are in this thread. 🤷♂️
+ 4
Javascript can be used for server side scripting(backend) in conjunction with Html and Css(front end) etc. You can use JS for everything but in real world you have to learn to use different technologies. Hope that clears :)
+ 3
Martin Taylor I believe JScript hasn't been used in browsers since IE8 was released in 2009. I'm not even aware of anyone using JScript on WSH since Windows XP or if it would still be supported today.
If this legacy script is still being used today, God Bless the devs supporting these scripts. 😂🤣
+ 3
Yes JavaScript has Node.js for back-end
+ 2
Yes, it can, but I wouldn't recommend it,
because JavaScript is a [REDACTED] language. If
your wish is to use only one language for
both client-side (web browser) and server-
side, JavaScript is not your only choice.
Your options open up wide if you accept
transpiled languages like TypeScript or
CoffeeScript.
Then, you can use far better languages for
front and back ends. Examples:
Bridge NET (C#)
.Cheerp(C++)
ClojureScript (Clojure)
.Dart
GopherJS (Go)
.Haxe
JSweet (Java)
.Kotlin
Opal (Ruby)
PharoJS (Pharo)
Scala.js (Scala)
.Transcrypt (Python)
Just to name a few. You sure aren't
hurting for choice.
So forget JavaScript. You don't have to
put up with this crap.
And you're welcome.
----
Edited by David Carroll
---
SITHU Nyein 🇲🇲 Please avoid use of profanity. I've edited your message with a [REDACTED] update.
+ 2
Advantages of JavaScript
Speed. Client-side JavaScript
is very fast because it can be
run immediately within the
client-side browser. Unless
outside
resources
are
required,
JavaScript
is
unhindered by network calls
to a backend server.
Simplicity.
is
JavaScript
relatively simple to learn and
implement.
a Popularity. JavaScript is used
everywhere on the web.
Interoperability. JavaScript plays nicely with other languages and can be used in a huge variety of applications.
Server Load. Being client-side reduces the demand on the website server.
Gives the ability to create rich interfaces.
+ 2
For the front end you can use Angular, ReactJs Vuejs etc. For backend Nodejs is a better option . You can check more about MEAN Stack ( Mongodb, Express, Angular and Nodejs ) or MERN Stack ( Mongodb, Express, ReactJs and Nodejs).
+ 2
JavaScript is not used in backend as it was only designed to make webpages alive , but the Node JS can be used a bit (still it lacks most of the backend properties) for backend but that SHALL NOT perform as good as original backend programming languages like C,CPP,Java, Python.
But yeah in IE8 and other versions VBS (Windows Operating System Only) functions could be called using a JavaScript.
As VBS is a bit more capable with backend works than JavaScript .you may try it but the method is really very old so, I shall never guarantee about it's working.
+ 1
Put some light on your question XD:
+ 1
+ 1
Just Javascript itself No. For backend has to be Nod.js.
+ 1
Of course you can, but pure JavaScript is using for frontend only, but JavaScript + Backend will equal NodeJS.
0
What bro
0
Can you clarify your questions?
0
what is advantage of javascript
0
Yeah but easier is python with django
0
yes, use NodeJS
- 1
se podria utilizar pero yo te recomiendo que no lo uses de esa manera