The syntax is easy to learn, and more importantly, other knowledge required to complete an application, such as http protocol, database, cookie, session, etc., if you let
A master who understands PHP development can quickly get started with nodejs, because the internal thinking and principles are the same, just changing a language and a set of APIs.
If you are a novice and have no basic knowledge of js language, but want to do background development, I suggest you start with PHP. It is simple and has many documents. You can write it when you are almost there.
When you have a complete website, if you come back and look at nodejs, you will find that something in nodejs is not just some related methods in PHP, and you will naturally get started easily!
The above is the detailed content of Which one is easier, php or js?. For more information, please follow other related articles on the PHP Chinese website!