Home >Backend Development >PHP Problem >What are the differences between php and javascript?
JavaScript is designed to add interactive behavior to HTML pages.
JavaScript is a scripting language (a scripting language is a lightweight programming language).
JavaScript consists of several lines of executable computer code.
JavaScript is often embedded directly into HTML pages.
Related recommendations: "php Getting Started Tutorial"
JavaScript is an interpreted language (that is, code execution is not pre-compiled).
Everyone can use JavaScript without purchasing a license.
Javascript is the script language executed by the browser to control the content of the page.
PHP is a powerful server-side scripting language for creating dynamic, interactive sites. It is a language executed on the server side, reading the database and displaying the content on the page.
In your current situation, you have chosen to learn PHP or want to increase the interactivity of the page. It is necessary to learn Javascript, because as a good programmer, you must know the front-end script JS, so Only in this way can it be handy in subsequent development. A lot of development requires cooperation with each other.
The above is the detailed content of What are the differences between php and javascript?. For more information, please follow other related articles on the PHP Chinese website!