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