+ 1

Difference between JS and PHP ?

can someone please make me understand about this difference? because most of the things just like variables, conditions etc are same in these languages

15th Feb 2018, 9:58 PM
Furqan Ali
Furqan Ali - avatar
4 Answers
+ 2
All i can say is a front end scripting language (js) vs a backend programming language(php)
15th Feb 2018, 10:32 PM
Faisal Khan
Faisal Khan - avatar
+ 1
Well, it’s not exactly correct to compare and contrast PHP and JS since both have pretty much different purposes. For example, PHP is server side (what you don’t see) and JavaScript is client side (what those who visit a site see). There’s whole more differences too. Here are a few resources on that: https://www.guru99.com/php-vs-javascript.html https://www.upwork.com/hiring/development/php-vs-javascript/ Hope that helps! If that doesn’t help you understand better, let me know so I can provide better resources.
15th Feb 2018, 11:14 PM
luciel
luciel - avatar
+ 1
A good answer @luciel
15th Feb 2018, 11:16 PM
Faisal Khan
Faisal Khan - avatar
0
Just as a comment: Javascript can be used in Frontend and in the Backend. Since the emergence of technologies like Node.js you can use it from both sides without problems.
16th Feb 2018, 1:09 AM
Mickel
Mickel - avatar