+ 1
I am a Javascript noob and I'm trying to make a heads or tails game...
This is what I have so far: <!DOCTYPE html> <html> <script type="text/javascript"> function coinFlip() { return (Math.floor(Math.random() * 2) == 0) ? 'heads' : 'tails'; document.write (function coinFlip() } </script> </html> Please comment solutions
1 Respuesta
0
Hey Myles, how are you? 😁
I know exactly what you need.
Refer to the part of the platform where the codes are.
Type "heads or tails"