PHP or Javascript | Sololearn: Learn to code for FREE!


PHP or Javascript

I im currently learning javascript for web development and it is giving me a hardtime. I was thinking if i could switch from javascript to PHP so i want to know if is possible to work on backend with PHP without any knowledge of Javascript.

1/23/2022 1:51:48 AM

Khuliso John Thavhiwa

2 Answers

New Answer


Yes, you can write the backend in PHP without knowledge of JavaScript. Two things to be considered, though: I am not too sure that PHP will be so much easier. And, unless you want to serve static pages, which is very much out of style, you will be needing JavaScript as front-end language. So, switching to PHP will have you learn two languages at least.