How to cut up a dozen in JS?

the <script>
var input = document.querySelectorAll('input');

var div = document.querySelector('h4');
var res;
for (let i = 0; i < input.length; i++) {
 input[i].addEventListener('input', function() {
 if (inputOne2.value !== "&& inputTwo.value !== '0') {
 res = inputOne2.value * inputTwo.value;
 div.textContent = res;
}
})
}






</script>

How to make this calculator the reduction amount in total up to ten, for example:0,00? Thank you.
March 20th 20 at 11:41
2 answers
March 20th 20 at 11:43
Solution
a similar question on the toaster: How to round a number to the hundredths js?

The method object Number .toFixed() rounds to the specified number of digits after the decimal point.

PS: the result of a polite request.
@Frederique22, see 9 line!
I asked for help, not a reference to cast - Tremaine_Jast72 commented on March 20th 20 at 11:46
@Frederique22, no need to be rude, open the link and read where the Russian language is in detail chewed. And the fact that you are asking for is not called "help" and "make me" - koby_OHara commented on March 20th 20 at 11:49
@Frederique22, Cyril, your behavior is causing a strong desire to send you away despite the fact that apparently you are still a child/teenager. Think about it.

once again, do not be lazy and read the link:

The method object Number .toFixed() rounds to the specified number of digits after the decimal point. - koby_OHara commented on March 20th 20 at 11:52
@brad, I don't know js, I have read and understood, will help I would be grateful - Tremaine_Jast72 commented on March 20th 20 at 11:55
@Frederique22, see 9 line!
- koby_OHara commented on March 20th 20 at 11:58
@brad, thanks, I am ashamed - Tremaine_Jast72 commented on March 20th 20 at 12:01
@Frederique22,
I don't know js, I have read and understood, will help I would be grateful

if you don't know js - teach is not an argument. If there are problems with the study - ask specific questions. Links toFixed - more than enough to deal with the situation. If you do not understand documentation - pull base. This must be done not on the toaster (or the forums), and courses/pairs/to Uchebnik/etc and practice.

The fix in your code is useless for absolutely everyone, including you. - Kurt_Botsfo commented on March 20th 20 at 12:04
March 20th 20 at 11:45
Can you help me what to add? - Tremaine_Jast72 commented on March 20th 20 at 11:48
@johan.Wyman, now, like my answer :))) - koby_OHara commented on March 20th 20 at 11:51

Find more questions by tags JavaScriptWeb Development