Get the App
SLTechnology News&Howtos  ›  Development  › 

How to get the Total score of the three subjects by javascript

Shulou Source: shulou.com Published: 2022-06-02 01:45:50 10月04日 Update

Today, the editor will share with you the relevant knowledge points about how javascript seeks the total score of the three grades. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

Javascript to find the total score of the three methods: 1, to create a js example file; 2, through the "var total=result+result1+result2;" way to find the total score of the three can.

This article operating environment: Windows7 system, javascript1.8.5 version, Dell G3 computer.

How does javascript get the total score of the three subjects?

Js inputs the scores of three subjects to get the total score.

Enter the scores of the three subjects in js,java,sql to get the total score effect diagram.

Js code var grade=prompt ('Please enter js score:'); var grade1=prompt ('Please enter Java score:'); var grade2=prompt ('Please enter sql score:'); var result=parseFloat (grade); var result1=parseFloat (grade1); var result2=parseFloat (grade2); var total=result+result1+result2; alert (total) These are all the contents of the article "how to get the Total score of the three subjects in javascript". Thank you for your reading. I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Tags: Grades total scores three subjects input knowledge articles content assembly total scores three subjects different big code most that is effects effect drawings files methods methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux MariaDB vpn Huawei NVidia