Can Javascript be used for frontend and backend development? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Can Javascript be used for frontend and backend development?

What is advantage of using only Javascript?

18th Apr 2020, 1:49 PM
Vignesh
Vignesh - avatar
20 Answers
+ 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. 🤪
19th Apr 2020, 3:49 AM
David Carroll
David Carroll - avatar
+ 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.
20th Apr 2020, 10:33 AM
Moree
Moree - avatar
+ 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. 🤷‍♂️
19th Apr 2020, 1:24 PM
David Carroll
David Carroll - avatar
+ 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 :)
19th Apr 2020, 8:51 PM
Prince
+ 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. 😂🤣
18th Apr 2020, 3:33 PM
David Carroll
David Carroll - avatar
+ 3
Yes JavaScript has Node.js for back-end
20th Apr 2020, 11:43 AM
None
+ 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.
19th Apr 2020, 12:54 PM
SITHU Nyein 🇲🇲
SITHU Nyein 🇲🇲 - avatar
+ 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.
19th Apr 2020, 12:55 PM
SITHU Nyein 🇲🇲
SITHU Nyein 🇲🇲 - avatar
+ 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).
20th Apr 2020, 4:39 AM
Athul Joy
Athul Joy - avatar
+ 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.
20th Apr 2020, 6:41 AM
[B.S.] BITTU
[B.S.] BITTU - avatar
+ 1
Put some light on your question XD:
18th Apr 2020, 1:57 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 1
Just Javascript itself No. For backend has to be Nod.js.
20th Apr 2020, 8:31 AM
ALi_Abdul
ALi_Abdul - avatar
+ 1
Of course you can, but pure JavaScript is using for frontend only, but JavaScript + Backend will equal NodeJS.
20th Apr 2020, 9:03 AM
Anisimov David
Anisimov David - avatar
0
What bro
18th Apr 2020, 2:00 PM
Vignesh
Vignesh - avatar
0
Can you clarify your questions?
18th Apr 2020, 2:01 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
0
what is advantage of javascript
18th Apr 2020, 2:04 PM
Vignesh
Vignesh - avatar
0
Yeah but easier is python with django
19th Apr 2020, 10:52 PM
W-tto
0
yes, use NodeJS
20th Apr 2020, 3:08 PM
ΔΗΜΗΤΡΑ ΝΤΟΒΑ
ΔΗΜΗΤΡΑ ΝΤΟΒΑ - avatar
- 1
se podria utilizar pero yo te recomiendo que no lo uses de esa manera
20th Apr 2020, 1:01 PM
josephflores35
josephflores35 - avatar