Math for children Javascript

Hello!

Iam going to do a assignment in programming and wondering how to do? I am a beginner useing Javascript in visual studio code.

It´s a math assignment for kids who is going to count minus, like 10-5, and not negative numbers like -4-1=.

Iam going to make a function that generates 2 random numbers and than returns into an array. Berore the returns. The random numbers are going to be in a range between 1-10.

when klick the OK button an elert window apperce and say if its right or wrong.

Any ideas?

Feedbacks?

I had a lot of fun coding it although I think it might not be the best way to do it but it works, that is what matters :joy: Poor kids

1 Like

Hi!

Yes it was exactly what I was looking for. The only thing was that the number you write was going to be in a propmt-window, and then the alert window pop up which it did.

Otherwise it was perfect. :wink:

Glad to see you liked it :grin::grin::grin:

I have added a prompt with a while loop of 10 because I find it annoying to have always prompts.