Community Discussion

Is it better to master Javascript or PHP

May 15, 2017
AlexHarris Author Level 1

Write the reason you're deleting this FAQ

I was consulting my friend's father that does web designing for a living, and he told me that it would be better to stick to either front end web designing or back end. I wanted a second opinion on whether I should try to master one thing or be a jack of all trades. I find Javascript more intriguing but I also want my website to function which is essential. Leave your opinion on the matter.
7

Comments 7

May 16, 2017
Tronia
A bit hard to compare the two. They both have their positive and negatives sides and it essentially comes down to what you want to do with them.

Javascript is client side and PHP is server side scripting.

WordPress and sites like that are built on PHP (since you mentioned you want your website). PHP is also used for servers like Sybase, MySQL and so on.

Javascript is useful for SPAs or server-side technologies - MongoDB, Express.js and so on.

For me personally, PHP is the better language because you can do more with it but some might disagree. You could always learn both.

Enter a reason for deleting this comment

May 17, 2017
May 21, 2017
Harrysung
Learn both! its undeniable that PHP is more powerful than JavaScript in today's websites. I don't see Javascript been much useful in the future. But's not enough reason not to have a knowledge of Javascript.

Enter a reason for deleting this comment

September 17, 2017
overcast
I think the times are changing and depending on single programming language for life is not a good idea. You can see that most of the web is PHP based. And there are some of the other high end websites and the apps are on other languages. And java-script is changing the way web is being used. And this needs to be understood. People have to consider that java-script complete stack may replace the PHP eventually. So the thing is that PHP now has a competition.

So if you want to be future proof with your career. Then go ahead and learn whatever it takes to get career on much higher ground. And that should be more than enough to manage the php and javascript projects that may come to you in future.

Enter a reason for deleting this comment

Please login or sign up to leave a commentJoin