javascript - Function not running, no error on firefox -
so, i'm working on random sentence generator. i'm trying work, function not seem running (this saved html file , i'm running in firefox). here's code far: <html> <body> <h1>hello.</h1> <br> <p>this website made me. no, not own domain. however, can run file computer. looking @ website. please enjoy!</p> hey! @ button made! i'm working on more stuff @ this. <button onclick="generatesentence()">click me random sentence!</button> <p id="output"></p> <script> function generatesentence() { alert("test") var subjectran = math.floor(math.random() * subject.length) var verbran = math.floor(math.random() * verb.length) var adjectiveran = math.floor(math.random() * adjective.length) var objectran = math.floor(math.random() * object.length) var adverbran = math.floor(math.random() * adverb.length)