JavaScript Beginner advice: Don't go for browser compatibility

Source: Internet
Author: User
Tags chrome developer

If I can go back to the past, I'll tell myself this:"beginner JavaScript ignores dom and BOM compatibility"

The situation when I was a beginner

The biggest headache when I was a beginner in JavaScript was the browser compatibility issue. In Firefox under the good code put to IE can not be displayed, or is in IE normal display code in Firefox and error.

The responsibilities of front-end development engineers include cross-browser development. So I just do not understand the language of JS itself time to spend time to learn browser compatibility knowledge , This will make JS learning difficulty increased . However, code that is not compatible with mainstream browsers cannot be used in real-world projects.

the compatibility of Dom and BOM has once made my JavaScript learning stagnant . The language is not understood enough, and the code can only run in a particular browser.

My advice.

If you are learning JavaScript and have the same situation as me, I suggest you: when you learn JavaScript, ignore DOM and BOM compatibility and 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.) in the actual work. Rest assured, few companies will let JS novice with the original JS to do the front-end development.

What are the benefits of learning JS early ignoring compatibility issues?
    1. Reduce learning Difficulty
    2. Reduced frustration
    3. Spend more time learning ECMAScript
When to learn JS cross-browser development knowledge

And when is the browser compatibility problem left to solve?

When you are proficient in writing reusable code using the JavaScript framework (jquery plug-ins or front-end controls), or when you are ready to develop a JavaScript framework yourself.

Some other JavaScript beginners suggest
    1. Never use JavaScript as an authoritative guide for getting Started books
    2. Should use JavaScript Advanced Programming (third Edition) as a starter book
    3. The value and value of the pass and scope knowledge must be understood
    4. Debugging tools must be understood and used, and learn how to catch mistakes. (Chrome developer Tool/firebug)
    5. Patience and patience, for every knowledge point deep digging can learn more easily.

These are some of my shared hopes if you can help the beginner JavaScript, if you feel that there is a misleading place please immediately point out.

JavaScript Beginner advice: Don't go for browser compatibility

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.