0
Which is the most important language to have in a website ? JavaScript or PHP ?
I'm almost finished learning CSS and I wanted to know which language, out of JavaScript and PHP is more "important" in a website. As in which will be more beneficial. Of course I'm well aware that with a combination of the two and HTML and CSS they will make an excellent website, but one could say my question pertains more to "Which I should learn next".
3 Answers
+ 3
I mostly use PHP, but occasionally when I want to have content on my site that updates without refreshing the page I use JS or more specifically jQuery's AJAX. So I'd say PHP is more important and I could mostly get by without JS. Also consider Python as a valid alternative for PHP although slightly lower on my recommended list cause less webservers support it.
+ 3
I would say learn jQuery instead. it's super easy and it does most of the JavaScript codes with just few lines. You wouldn't need too much use of JavaScript in a website but if you wanna use anything that changes on client side then use jQuery instead. then learn php because it helps to make dynamic websites which is great. You can edit, post, delete stuff without really changing the html. you also don't have to make several for example headers, footers for each page, just make one and import that part of the page inside your man page. So overall, jQuery then php(including Mysql) then maybe JavaScript.
0
Ok ! Cool ! Thanks for your opinion really helps đ