166k views
5 votes
In a web application, how is the execution of JavaScript fundamentally different than PHP?

User Sunjinbo
by
6.3k points

1 Answer

4 votes

Answer: The difference present between JavaScript and PHP in term of the web application for execution are as follows:-

  • After the interpretation done by the servers, code of PHP is available for handling whereas after interpreting the output of the JavaScript , the code become available .
  • PHP is mostly based on the programming of the client side whereas JavaScript is made for working on the side of the client or user.
  • PHP persist the easy execution because it is easy to understand and debug as compared with JavaScript which is slightly difficult documentation.

User Ujjwal Dash
by
5.8k points