Getting Started with JavaScript (eight) __java

Source: Internet
Author: User

Summary

In this chapter, we learn what JavaScript is, how it works, and its pros and cons. The biggest drawback is that we can't trust the reliability of the information we have, but I've made a note of it, but I also mentioned that using JAVASCIRPT can make the site a better and smoother experience.

You've run some JavaScript code, you've seen how to add annotations to your code, and how to separate JavaScript statements with semicolons. You know, using curly braces allows JavaScript to think of a set of multiple lines of code as a separate block. This is followed by an example of an if statement. You've learned that JavaScript execution is usually top-down, from the first script block to the last script block, and the function is an exception that is executed only when you call it to execute.

We also learn about objects, which is the core of writing JavaScript. Instead of JavaScript itself, the browser uses objects and methods to script itself and the document, and finally, we look at a simple little example that reads the user's screen resolution and applies a style that is the same.

In the next chapter, I'll cover the basics of JavaScript language. You'll see how JavaScript stores and manipulates data, and how to use it in calculations. We also see the use of decision statements to create "smart" JavaScript programs. It allows us to evaluate the data, compute it, and select a suitable branch of action. After you've mastered the next chapter, you have much of the basics of continuing to learn more exciting and useful web programming.

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.