+ 1
Is php better than JavaScript in anyways
3 Answers
+ 2
They are different
PHP is backend.
JavaScript is frontend.
JavaScript tech stack can go a long way, from writing server side app (with Node.js), to writing cross-platform desktop app (with Electron.js) and writing cross-platform mobile app (with ReactNative).
+ 1
Both are different. Both are used to different purposes so we can't say php is better than Javascript. PHP is used as a server side language and Javascript is used in client side. What i mean by this is PHP code is executed in the server (eg:- google server,facebook) and Javascript is executed in client side ( eg:- chrome or mozilla browsers).
Both PHP and Javascript has its own advantages and disadvatanges