im stuck with my code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

im stuck with my code

im stuck, i dont know how can I make it work, can someone help me? https://code.sololearn.com/WDhhx7eM9Ddm/?ref=app i dont know how to find out if some of my buttons are checked and which one when button submit is clicked

5th Jan 2018, 10:42 AM
Funda
Funda - avatar
2 Answers
5th Jan 2018, 11:16 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
@Adam Ross, There is no importation required in JavaScript. Also, the random function in JavaScript returns a value from 0 to 1. "weaponss" is not a typo. It's just a class name. You can name it any way possible.👍
5th Jan 2018, 11:26 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar