+ 4
php vs JavaScript
Which is better: php or javascript?
5 Answers
+ 7
Php can only be used for back-end while js can be used everywhere.
Php has only a few convenient features when it comes to servers but node js is more secure...imo.
+ 5
That's like asking what is better on your bicycle, the front or the back tire? They work together alongside one another to help out with the total function of the bicycle.
Learn both of them. PHP is the server-side programming language and JavaScript is the client-side language. So the PHP is handling all of the tasks on the server end, such as database management, etc... and your JS is handling the client-side interactions, which is how we get most of the fancy functionality we expect of websites.
However, if you plan to use NodeJS (it's a server-side language that works with JavaScript), then you don't need to learn PHP. JavaScript/NodeJS is a good combo also and one I'm a big fan of. If you go that route, focus on JS for now.
+ 2
For me:
-1. JavaScript
-2. PHP
đđȘđđđ
0
JavaScript