+ 1

What is the difference between JavaScript and backend languages like PHP ??

Sometimes I feel like JavaScript looks very similar to back end languages. Can we use it as a back end language ?? Or what does JavaScript does concretely to a web page ?? That is different from back end languages!!!!

28th Jul 2017, 11:42 AM
Rudy Petgang
Rudy Petgang - avatar
2 Answers
+ 2
lets say server side and client side to let you understand better first reason server-side needed is security.if your code requires to connect database probably you will not want to see people or hackers to know your database password at client-side languages everything works at dient side which makes everything fast or even code will work while there is no internet connection but user may see all your code. i can count many many reaaons but this one mooost important so making a project with combination of languages and scripts like html +js+php is making your project much more secure, staible and fast .
28th Jul 2017, 12:26 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
0
JavaScript is front end language that is used to create user interface and some small functions. Whereas the job of back end language is to store data, retrieve data for user, and manipulation of data. When you fill a form your responses​ and answers get stored in their database by back end languages​.
28th Jul 2017, 12:06 PM
G.S.N.V. Suraj
G.S.N.V. Suraj - avatar