+ 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?
4 Respostas
+ 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
0
First of all thanks for reply,
Do you mean to say that js is for front end and php is for backend?
0
Yes
0
Okay, thank you :)