What is the use of JavaScript and PHP? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

What is the use of JavaScript and PHP?

I am thinking both are may be using for same purpose. Please elaborate which having vital role and demands?

15th Apr 2019, 6:12 PM
Zaff's
Zaff's - avatar
3 Answers
+ 5
JavaScript can be used for both front and back-end development, JavaScript is buildt into the web browser and is a huge part in creating dynamic websites. PHP on the other hand is run on the server, so all PHP code is run before the user sees the page. Its common to use both PHP and JavaScript together, PHP for the back-end and JavaScript for the front-end, since PHP cant really cant do anything to your page without a page refresh, whereas JavaScript can. That’s a short answer, for more in-depth knowledge I’d check out articles about the subject. Hope it helped.
15th Apr 2019, 6:36 PM
Victor Andersson
Victor Andersson - avatar
+ 4
Client and server side scripting for the web are the most typical use cases.
15th Apr 2019, 11:11 PM
Sonic
Sonic - avatar
+ 1
java script is awesome language for functioning of web page it decides what will happen if we click this or that
16th Apr 2019, 4:33 AM
Jayesh Bhave
Jayesh Bhave - avatar