+ 1

PHP vs JavaScript

Between Php and JavaScript ,which do you prefer and why?

18th Oct 2017, 6:07 AM
Josmik
Josmik - avatar
7 Answers
+ 9
JS cannot be replaced at client side scripting, and any major scripting language (including JS) can replace Php at server side... If you want to compare them, you can only do it for server side scripting context, and you will only get personal users preference, never an absolute better one. Anyway, my personal prefered choice for server side scripting is Python, because I love it and I'm boring of Php and I think it start to be a little outdated, even it's still the most used actually... JS could have advantage to be already better known for most of web developpers, but even it's a lovely and powerful language, it's also a messy language, and server side scripting in quite any language should require at least one specific web server framework learning, so why not a totally new language rather than only one more framework ^^
18th Oct 2017, 8:33 AM
visph
visph - avatar
+ 6
PHP works on server-side. JavaScript works on client-side
18th Oct 2017, 6:32 AM
Vitaly
Vitaly - avatar
+ 5
The are different, can't compare. Javascript can't use for PHP, and PHP cant replace Javascript.
18th Oct 2017, 6:31 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 5
As @Calvin said, neither language is better than the other. I like both of them
18th Oct 2017, 6:38 AM
Learnsolo
+ 3
Well, it is a bit wrong to say 'Javascript is client side' as nodejs is a powerful way to use js one server side...
18th Oct 2017, 7:47 AM
Drax
Drax - avatar
+ 1
is Different Language , Php For Server Part And For Talk With Sql About Database But Javascript Is For the Part Of Animation or interaction With User :)
18th Oct 2017, 8:19 AM
Yasser Loukniti
Yasser Loukniti - avatar
- 2
zzz5uiyyt5y
20th Oct 2017, 11:49 PM
Cassidy Elie
Cassidy Elie - avatar