Code a JavaScript number guessing game
Вставка
- Опубліковано 12 вер 2024
- 🎓 View our courses: scrimba.com/li...
Leanne and Michael are back! This week, they're coding a number guessing game with HTML, CSS and JavaScript.
They'll look at:
👾 Generating a random number from 1 to 100
👾 Comparing the user's input with the target number
👾 Displaying a "too high" or "too low" message
👾 Win functionality and what happens next!
ABOUT SCRIMBA
Scrimba's goal is to create the best possible coding school at the lowest possible cost for students. If we succeed with this, it’ll give anyone who wants to become a software developer a realistic shot at succeeding, regardless of where they live or the size of their wallets.
Learn more and sign up for free 👉 scrimba.com
🌳 Scrimba’s Linktree: linktr.ee/scrimba
Here's our finished Numbers Game - happy guessing! 😄🎲 scrimba.com/scrim/codb0412fa7d73b5e14b6e083
If you wanted to lean on the inbuilt html form validation wrap your preventDefault() in checkValidity()
Excellent tip!
Thank you for the Ukrainian heart 💖
and for the lesson 🤗
💙💛
Thank you for the Ukrainian flag heart and channel logo. These small details are actually quite unexpected when you go to see something about the development and realize that you not only got to an interesting lesson, but also found yourself among people who care.
💙💛