Javascript is difficult to learn. JavaScript is a language that is both object-oriented and process-oriented. It is definitely 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.
Originally any language is difficult to learn well, but if you have to compare php and javascript, javascript is more difficult, and it just starts with writing code. , debugging code and looking at the logic.
1. Both are scripting languages, and their syntax is very flexible. Neither of them is a completely object-oriented language. Due to historical reasons, etc., there are no "weird" things in JS. Less, and JS now not only runs in the browser, it is also "full stack". I personally think the overall learning difficulty is higher than PHP, but it is definitely difficult to learn PHP well. Why do some people think it is easy? Watch 2.
2. With the advent of the mobile Internet era and the continuous development of H5 technology, JavaScript once became the most popular language on github. Compared with PHP running in the back-end environment, its development is relatively slow, but it is not without progress. Due to its unique advantages in the web field (fast development speed, high efficiency, and many practitioners), PHP has a community Prosperity, to be honest, I personally feel that its version 7 came a little late, but fortunately it has arrived. It supports traits, closures, reflection, etc. It has borrowed all the things from the OO language and its efficiency is improved by 2 compared to 5. times, there is more content to learn and apply. But I still think that JS is harder to learn than PHP. Maybe I, a newbie, think that JS often doesn’t follow the usual path
3. Learning JS is easy to operate. You don’t need to rely on the environment. You can write it in a browser. It’s not as easy to get started as PHP. ? But learning it well is difficult. The author of JQuery has said that JavaScript will be a popular language for at least the next 20 years. It is difficult to learn it well and become proficient in it. If you believe that "PHP is the best language in the world", then I can't help it. You have to know that a company can do without PHP, but it is impossible not to do without JS.
The author of JQuery has said that javaScript will be a popular language for at least the next 20 years. It is difficult to learn it well and difficult to master it.
For more PHP related knowledge, please visit PHP Chinese website!
The above is the detailed content of Is it difficult to learn php or javascript?. For more information, please follow other related articles on the PHP Chinese website!