PHP or JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 14

PHP or JavaScript?

I've completed HTML and CSS:)) What's the recommended next step? Should I learn JavaScript or PHP? Which would be more useful in this big wild world?? I know I'll learn both eventually, but which would you recommend that I do first please? Thank you:) Toni x

25th Mar 2021, 4:43 PM
Toni
Toni - avatar
27 Answers
+ 18
First start JavaScript , it will help you allot in front-end, so after completing JavaScript you can say that you have completed front-end part. Then for back-end it's up to you , you can learn php or node. Conclusion : first learn JavaScript, it will cover you full front end including events, less written in html etc!! After js you can start PHP both are amazing language!! Have fun!! All the best !!
25th Mar 2021, 4:57 PM
Abhiyantā
Abhiyantā - avatar
+ 9
I think I'll do JavaScript:) thanks for your help guys!
25th Mar 2021, 7:27 PM
Toni
Toni - avatar
+ 8
you have just learn to make static webpages learning javascript will help you to accomplish your frontend journey that you started by making very cool interactive and dynamic webpages. there after you will learn php . that is a good flow. though you may start anywhere. but i recommend javascript first.
26th Mar 2021, 1:59 PM
Ona Nixon 🇹🇿 👑
Ona Nixon  🇹🇿  👑 - avatar
+ 6
Toni if you want to do frontend learn JavaScript but if you want to do backend as СОБАКА => Дебил / Retard posted up there☝ learn php. Happy Coding!!
25th Mar 2021, 4:55 PM
Matias
Matias - avatar
+ 5
JavaScript
25th Mar 2021, 8:57 PM
Misael Meriles
Misael Meriles - avatar
+ 5
Back-end: php Front-end: javascript First learn javascript and then php
26th Mar 2021, 6:45 AM
Rajeev kumar
Rajeev kumar - avatar
+ 5
First JavaScript after that Php
26th Mar 2021, 1:08 PM
Qusi AL-Hejazi
Qusi AL-Hejazi - avatar
+ 4
Toni I think you shold do JS because then you will be able to master the web part of coding so that you can then move on to the next.
25th Mar 2021, 4:53 PM
Mario [Code Studios]
Mario [Code Studios] - avatar
+ 4
First start JavaScript..
27th Mar 2021, 2:15 PM
Gayatri Sarap
Gayatri Sarap - avatar
+ 3
php is my favorite
26th Mar 2021, 6:45 AM
Nasharmy
Nasharmy - avatar
+ 3
I suggest you, you should go with javascript after html css and if you want to create back-end then nodejs is also ther ,if you want to create mobile app then react and react native is also in JavaScript and here are so many library and framework in JavaScript already also in npm You are a beginner then you should select javascript but it's doesn't means php is bad php is also good learn php after javascript Thank you hope you got your answer best of luck 😉
26th Mar 2021, 11:32 AM
Sona
Sona - avatar
+ 3
I would say javascript 1st then go on to php or python
27th Mar 2021, 6:19 AM
Brenda Michelle 🌿
Brenda Michelle 🌿 - avatar
+ 3
The anwer is simple is depend upon the the development which you are performing if you focus ui design which we say the front hand of wesite so for this we use html and css to perform the functionailty on it we use the concept of javascript whom we called as client side language and php is used server side lamguage which is basically used for backend purpose in the website for the fecting the data if we use both then u called as full stack developer
27th Sep 2022, 7:20 PM
faheem amjad
faheem amjad - avatar
+ 2
Toni anytime
25th Mar 2021, 8:16 PM
Mario [Code Studios]
Mario [Code Studios] - avatar
+ 2
Often you'll programme PHP within JavaScript, by the other hand you won't programme JavaScript within PHP. JavaScript.
27th Mar 2021, 12:49 AM
Ivan Zanoth
Ivan Zanoth - avatar
+ 2
I will prefer you java script because it will helpful for you through it you can understand php easily .
27th Mar 2021, 4:54 AM
Anurag Kumar
Anurag Kumar - avatar
+ 2
You can learn javascript first than php
27th Mar 2021, 10:00 AM
Sajid Ali
Sajid Ali - avatar
+ 2
Bro my suggestion would be JavaScript first. After u complete that u may learn another things.😀
27th Mar 2021, 2:34 PM
Abhishek Pandey
Abhishek Pandey - avatar
+ 2
Javascript
27th Mar 2021, 4:01 PM
Aditya
Aditya - avatar
+ 2
I recommend javascript first coz you know js will help if you want to reach php or other files using ajax, thought i find php not that great but it is worth learnign it coz it is the only one language i know that does not require a framework to do that you can just use core php
20th Aug 2021, 6:47 PM
Nshuti Alliance
Nshuti Alliance - avatar