Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
First, you need to add a couple of buttons. These buttons have an onclick property. Add your function to the onclick property of each button. This will execute the function when the button is clicked. Second, you left out the +32 portion of the equation.
10th Dec 2019, 8:25 AM
Beeman
Beeman - avatar