Skip to content

itsnooshin/guess-my-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

guess-my-number

video.mp4

<<<<<<< HEAD

Guess-my-number

It's a basic game made by Dom Manipilation. There are a total of 20 numbers you can choose from.

Screenshot

Desktop

Mobile Version

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Desktop workflow

what i learned

As a result of this project, I learned how to change the background color in javascript and how to compare scores using if/else statements

 document.querySelector('body').style.background = 'green';
 if (!guess){
   document.querySelector('.title__right-box').textContent =  '⛔ No answer' ; 
    
   }
   else if(guess === secretNumber){
    document.querySelector('.title__right-box').textContent =  '🎉 correct number' ; 
   }

Useful resources

Author

Acknowledgments

Jonas's course and Mosh Hamedani's helped me understand how to learn javascript because there are many challenges for me and the challenges helped me improve some Javascript basics

f230fb40b5e8d5947fa72f4c2c913fe2addec259