JS Cashier Meta Applet

Source: Internet
Author: User

<! DOCTYPE html>
<meta charset= "UTF-8" >
<TITLE>JS Exam </title>
<script type= "Text/javascript" >
1. Write a procedure to calculate the increase in wages. The demand for basic pay is greater than or equal to 1000 yuan, an increase of 20% of the wages, if less than 1000 yuan and greater than or equal to 800 yuan, the increase of 15%, if less than $800, the increase of 10% wages.
var pay = 1000;
if (pay >= 1000) {
Pay + = (pay * 0.2);
}
else if (Pay < $ && pay >= 800) {
Pay + = (pay * 0.15);
}
else if (pay < 800) {
Pay + = (pay * 0.1);
}
document.write ("+pay+" </br> "last wage");

</script>
<body>

<div onmouseover= "MOver (This)" onmouseout= "Mout (This)" style= "height:50px; width:200px; Background-color: #ADD8E6; Color:red "></div>

</body>

JS Cashier Meta Applet

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.