Can anyone help me change the code below to make clicking either the Heads or Tails button perform the Math.random function to display the result “you win” or “you lose” in the paragraph tag. I am new to this and spent a lot of time to come up with this code but can’t make it quite work.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.