159k views
0 votes
Hey guys. So I'm doing a basic program for a battle game in Javascript, and I've having trouble on this one question. (subtraction)

If I have one number like 20, then 3 numbers such as 2, 4 and 7, I could easily find out which number in those 3 i subtracted by. For example if I had 18 as the answer, then I could do 20 - 18 and get 2 from the 3 numbers.

But how do I do that twice? or three or more after that one time? how would I know which one I picked after? (after the number is used once, it can still be used forever on, it's always random)

User Mini John
by
3.7k points

1 Answer

1 vote

Answer:

can i show you how to do it

Explanation:

User Zhen Sun
by
3.6k points