Write a multiplication table in JavaScript

Source: Internet
Author: User

JavaScript is a network scripting language, has been widely used in Web application development, often used to add a variety of dynamic features for Web pages, to provide users with more smooth and beautiful browsing effect. JavaScript scripts are typically embedded in HTML to implement their own functionality. JavaScript is a scripting language whose source code is not compiled until it is sent to the client, but instead sends a text-formatted character code to the browser to be interpreted by the browser.

Here is an inverted multiplication table I wrote with JS:

<! DOCTYPE html>"Utf-8"> <title></title> "Text/javascript">//find 1~100 between the odd and            varsum=0;  for(varI=1; i<= -; i++){                if(i%2==1) {sum+=i; }} document.write ('1~100 between odd-numbered and for:'+sum+''); //ask for an even number between 1~100 andsum=0;  for(varI=1; i<= -; i++){                if(i%2==0) {sum+=i; }} document.write ('the number of even-numbered 1~100 between:'+sum+''); //output inverted 99 multiplication table</script> </body>

In JavaScript, if one does not work, the following languages do not work.

This is my small case, hope can help everyone! Do not understand, you can always ask Oh!

Write a multiplication table in JavaScript

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.