Why we use javascript as we have a powerful scripting language php?

JavaScript

1 answer

Answer

1220173

2026-04-26 13:10

+ Follow

JavaScript
JavaScript

First of all, PHP is server side, JavaScript is client side. You cannot detect mouse gestures or any clicks with PHP the same way you cannot read a file or modify it or process a form (unless you use AJAX of course). Also, although I love PHP, and it has useful extensions such as the GD library, PHP is not a very good language. Overall we use JavaScript and PHP because they are used for two completely different things.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.