+ 1

What is the: main Purpose of JavaScript vs PHP in web development

Can we learn only one (js/php) and do all necessary stuff? Can't we connect database by js? Aren't they both web programming languages?

31st Jul 2019, 7:53 PM
Muhammad Osama Ahmed
Muhammad Osama Ahmed - avatar
4 ответов
+ 2
PHP is server side scripting language which do some other stuffs like processing request, connecting to database and on the other hand Javascript is a client side language. NB: You can't connect to database using js
31st Jul 2019, 10:23 PM
Raziul Islam
Raziul Islam - avatar
0
First of all thanks for reply, Do you mean to say that js is for front end and php is for backend?
1st Aug 2019, 2:05 AM
Muhammad Osama Ahmed
Muhammad Osama Ahmed - avatar
0
Yes
1st Aug 2019, 7:06 AM
Raziul Islam
Raziul Islam - avatar
0
Okay, thank you :)
1st Aug 2019, 12:38 PM
Muhammad Osama Ahmed
Muhammad Osama Ahmed - avatar