I created this game using javascript. This is not for mobile phones. Reviews for improvement would be highly appreciated. This is the link
1 Like
An awesome work by the way… Can you show your code?
1 Like
thank you! here is my source code : link
1 Like
Can you please tell me why you used math.floor() in your code?
let task = Math.floor(Math.random() * data.length)
I am just a beginner in js…
1 Like
you see, math.random() function generates random numbers between 0 and 1 , which obviously is decimal. Math.floor() helps to reduce the number to an integer.
2 Likes
yeah, I got it and so easily… thanks for helping brother
1 Like
You’re welcome. I am glad I could help.
can I add with you? or give you messages…
yes you can! (::::
1 Like