+ 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

23rd Sep 2019, 12:10 AM
Myles
Myles - avatar
1 ответ
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"
23rd Sep 2019, 1:31 AM
Manual
Manual - avatar