JavaScript Beginners recommend: Do not go to the browser compatibility _ basic knowledge

Source: Internet
Author: User
Tags chrome developer
If I could go back to the past, I would tell myself: "When beginners JavaScript ignores the compatibility of Dom and BOM"

  the situation when I was a beginner

The biggest headache when I was learning JavaScript was the browser compatibility issue. Under the Firefox good code put to IE can not be displayed, or in IE can be the normal display of the code in Firefox and error.

The responsibilities of front-end development engineers include Cross-browser development. So I do not know the language of JS itself when to spend time learning browser compatibility knowledge, which will make JS learning more difficult. However, code that is not compatible with mainstream browsers cannot be used in actual projects.

The compatibility issues with DOM and BOM have once made my JavaScript learning stagnate. Language comprehension is not enough and code can only run in a particular browser.

  my advice.

If you're learning about JavaScript and have the same situation as me, I suggest you: When you're beginner JavaScript, ignoring the compatibility of Dom and BOM, spend more time understanding the language itself (ECMAScript). Write code only in a specific browser (Chrome/firefox/safari), using a mature JavaScript framework (jquery, etc.) for practical work. Rest assured that very few companies will let JS novice with the original JS to do front-end development.

   Learn JS Early ignore compatibility issues what's the benefit

Reduce the difficulty of learning
Reduce frustration
Spend more time learning ECMAScript

When to learn about JS development knowledge across the browser

And when is the browser compatibility problem left to be resolved?

When you can skillfully use JavaScript frameworks to write reusable code (jquery Plug-ins or front-end controls), or when you are ready to develop a JavaScript framework yourself.

Some other JavaScript beginners suggest

Don't take the JavaScript Authority Guide as an introductory book.
JavaScript Advanced Programming (third edition) should be used as an introductory book
Values and values, scope knowledge must be understood
The debugging tools must understand and use more, and learn to catch errors yourself. (Chrome developer Tool/firebug)
Patience and patience, to each of the knowledge points dug can learn more easily.

These are some of my share hopes that if you can help beginners JavaScript, please point out if you think it is misleading.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.