Home  >  Article  >  Backend Development  >  Is JS easier or PHP easier?

Is JS easier or PHP easier?

青灯夜游
青灯夜游Original
2019-10-19 16:30:382786browse

Is JS easier or PHP easier?

php is simple. JavaScript is a language that is both object-oriented and process-oriented, and is certainly more difficult than pure PHP.

In comparison, PHP is much easier. The language absorbs basic c/c java, is widely used, and is easy to learn.

Both JS and PHP are scripting languages, both have flexible syntax, and neither is a completely object-oriented language. However, due to historical reasons and so on, there are many things in JS that feel very "weird", and JS now not only runs in the browser, it is also "full stack", and the overall learning difficulty is higher than that of PHP.

Why is JS so difficult? Mainly because JavaScript does too many things, and the details of processing are too trivial, such as processing dom, ajax, bom, and browser compatibility. To make animations, special effects, and operate mongo database b and subset json, you need to master not only JavaScript, but also css, html, web standards, etc.

There are also compatibility issues with various browsers, the complexity of the DOM itself, and various frameworks. Newcomers recommend jquery. Who said jquery is outdated? jquery provides a series of APIs for operating DOM, which is very convenient. Of course, Vue is not unusable, but for newbies, jquery is more intuitive and vue is more abstract.

For more PHP related knowledge, please visit php中文网!

The above is the detailed content of Is JS easier or PHP easier?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn