+ 4

Which one is better, Javascript or PHP?

I was going through the lesson of PHP on SoloLearn today. I just wanted to know which scripting language is better?

26th Aug 2017, 9:00 AM
Harsh Kumar
Harsh Kumar - avatar
6 ответов
+ 9
PHP good for server-side script it depend on what type of web you want use. I suggest JS, cause JS is powerful scripting language and sexy too. JS good for server-side and client-side too.
26th Aug 2017, 9:10 AM
Amethyst Animion
Amethyst Animion - avatar
+ 8
@Harsh Kumar because you very curious about that, I give you a simple explain. some of learner here always search the most recent QA post. they also know something to share in others question. when they open a QA, there is no answer. so they answer it without reload the QA post to see if there already has an answer. because that you see 3 learners answer your question with long answer within a minute
27th Aug 2017, 2:38 PM
Amethyst Animion
Amethyst Animion - avatar
+ 6
How can you guys answer so fast? 😂 Plz let me know your secret. Such a big answer in a few seconds..........how???
26th Aug 2017, 9:04 AM
Harsh Kumar
Harsh Kumar - avatar
+ 6
JS :) php is server side :)
29th Aug 2017, 9:35 AM
AL.The.Flame!
AL.The.Flame! - avatar
+ 5
JavaScript. Why?? Because JavaScript can now run on server with node.js. Think of it as after learning JavaScript and you start writing frontend applications and then want to dive in to writing back end applications. You don't need to start learning new technologies like php or rails. Since you have that knowledge of js, you use that as an advantage with node.js to start writing your back end applications. The npm for Node.js has many modules to speed up the development process some of which are express and socket.io. To me JavaScript has changed my life. JS rocks 💯 👍
26th Aug 2017, 10:22 AM
sixtus
sixtus - avatar
+ 4
JSP and PHP are web programming languages. They are mostly used as the logic behind the scene. All the if-else, variable, for each, etc. all go to here. When JSP/PHP are rendered, that is when HTML is called. HTML is whatever you view on a website. Right click and choose view source on any webpage, the source code you see is HTML. Javascript is mostly front-end too, it is like interacting with what the user sees. To create a website, you need to know HTML at the very least. Knowing HTML only can only bring you static websites with no logic, but with web programming language running back-end, you can do more such as user registration, etc. To accomplish your project, you need JSP/PHP and HTML. Javascript is not necessary. I recommend you to use PHP, as it is more widely supported, with rich documentation, easy to setup, and Take this chance to learn new language. and you can also use javascript after getting some knowledge of html and php in my opinion all languages are good but I like javascript but it is important to learn and know who and html before go towards javascript
26th Aug 2017, 9:02 AM
GAWEN STEASY
GAWEN STEASY - avatar