Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHayden Lee
1,138 PointsWant to Elaborate?
use this for html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/main.css"> <title>Random Number!</title> </head> <body> <div class="container"> <h1>Random Number</h1> <script src="app.js"></script> <form action="." method="get"> <button class="Submit">Create A New Number!</button> </form> </div> </body> </html>
Use this for JavaScript:
var returnAnswer = prompt("Name A Random Number") var returnAnswer2 = prompt("Name A Bigger Number")
while(returnAnswer2<=returnAnswer) { returnAnswer2 = prompt("Your second return number is too small. Enter another one")
} alert("NumberCheck completed. Ready for your random Generated Number?")
alert(Math.floor(Math.random() * (returnAnswer2 - returnAnswer)) + parseInt(returnAnswer) + 1) "1" * "3"