Practicing function

Function is about betting.
bet = I have 10 $ and want to bet on 1.3. Which is 13$.
Then bet1 = bet * 1. 3.Which is 16$.
Then bet2 = bet1 * 1.3$.

You get the point but I just can write it correctly and don t know how to output it in codepen. And is it possible to store this values and bind it to a button?

Actually not really? Do you want to increase bet by 1.3 on every button click?

1 Like

well I want to increase bet but keep 1.3. And I wanted to assign values of bets to buttons. So when you press button bet shows. Like 8 buttons 8 bets