Math, asked by sumanpariprem, 9 months ago

Can any body write 100 to 0 . In 1 min.

Answers

Answered by Anonymous
32

//fill in below as you need

let startCount = 100;

const stopCount = 0,

duration = 5000,//milliseconds

countDownElement = hypeDocument.getElementById('exampleElement'),//your element to display the countDown

//end fill in ...

intervalTime = duration/Math.abs(startCount - stopCount);

let countDown = setInterval(

function(){

if(startCount === stopCount)clearInterval(countDown)

countDownElement.innerHTML = startCount;

if(startCount > stopCount) {

startCount--

}else{

startCount++

}

},

intervalTime

);

Answered by Anonymous
2

1 2 3 4 5 6 7 8 9 10.

11 12 13 14 15 16 17 18 19 20.

21 22 23 24 25 26 27 28 29 30.

31 32 33 34 35 36 37 38 39 40.

41 42 43 44 45 46 47 48 49 50.

51 52 53 54 55 56 57 58 59 60.

61 62 63 64 65 66 67 68 69 70.

71 72 73 74 75 76 77 78 79 80.

81 82 83 84 85 86 87 88 89 90.

91 92 93 94 95 96 97 98 99 100.

well I tried.

can't blame me for trying.

please mark me brainliest please

Similar questions