PHP vs JavaScript


I recently had to switch gears and pick up PHP as my job dictates dealing with websites all day, and 90 percent of those websites are WordPress. I'm really not far enough into PHP to make a full comparison, but from what I've seen so far, it's far easier than JavaScript. Are there any pros that can weigh in on the conversation? I enjoy working with JavaScript a heck of a lot more than I do PHP as well.


PHP always requires a server, and JavaScript does not, which also means JavaScript is almost always faster. Syntax is quite similar from what I've seen, but it really depends on what you need to do with the languages.


That makes sense. I guess I'm just more comfortable in JavaScript because I've practiced more with it.


Me too. Just keep learning and practicing and you'll get better and more comfortable! :slight_smile: