+ 1

Can anyone help me whats problem in this

Error in code repo https://code.sololearn.com/W7Vnbg5n0Q0A/?ref=app

10th Jun 2022, 8:23 AM
Anime Weebies
Anime Weebies - avatar
5 Answers
+ 3
Shubham align is an attribute which should be inside tag <h1 align="center"> remove extra canvas tag
10th Jun 2022, 8:36 AM
A͢J
A͢J - avatar
+ 3
Shubham y is going below 0 means in minus This code should be inside draw function: t = Date.now(); speed = 25; var timePassed = (Date.now() - t) / 1000; t = Date.now(); if(y <= 350) { speed += 50 * timePassed; y += speed*timePassed; } if(y > 350) { count = 0 } And draw function should call inside onclick event
10th Jun 2022, 10:30 AM
A͢J
A͢J - avatar
+ 2
Ok bro thx
10th Jun 2022, 10:33 AM
Anime Weebies
Anime Weebies - avatar
+ 1
Ok thx bro
10th Jun 2022, 8:37 AM
Anime Weebies
Anime Weebies - avatar
0
Bro can you tell why ball not falling down
10th Jun 2022, 8:39 AM
Anime Weebies
Anime Weebies - avatar