Code a JavaScript number guessing game

preview_player
Показать описание

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.

Рекомендации по теме
Комментарии
Автор

If you wanted to lean on the inbuilt html form validation wrap your preventDefault() in checkValidity()

felicityevans
Автор

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.

DmytroBotnarenko
Автор

Thank you for the Ukrainian heart 💖
and for the lesson 🤗

shifronim