Build a Dice Roll Game - JavaScript CSS Tutorial for Beginners

preview_player
Показать описание
In this tutorial, we'll create a Dice Roll Game using HTML, CSS & JavaScript. This project-based tutorial is suitable for all especially beginners.

Files:

📕 Concepts covered in this video:
- How to create awesome Dice Roll Game
- DOM manipulations
- CSS Gradients
- Conditional Statements

Don't forget to smash the like button and comment if you found this video useful.

Moreover, click on the bell icon to turn on notifications. This way you'll be notified the moment new videos are uploaded.

Share this video with a friend:

Let’s connect:

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

thank you so much it is really working and very useful

manalihomkar
Автор

Your Project-based Tutorials has been so Valuable for me in my job as a Fullstack Developer. Thank you so much for taking the time to help all of us for Free. <3

fullstackdev
Автор

This is a really good tutorial
I actually changed it slightly to show the total rolled by adding this code to the H1
h1.innerHTML = `You Rolled a ${dice1 + dice2}`

dividedbyzero
Автор

This is amazing, but I have a bit of an issue. I currently have 3 dice but I want to add the random numbers together in the end. I managed to get the 3 dice rolling but I need to show the value of them all added together

seebg
Автор

would you be able to add a betting system to it? Im trying to build my own profile account, score tracker, Top 10 List, and ecom coding but I am having a hard time with databasing on a 3rd partys got it to work, thank you.

DaysAnNights
Автор

can i ask whats the logic i can use to this instruction. Give the player 3 tries over 5 guesses on a dice (singular for dice). If the player gets 3 correct
guesses, show “WIN” (or something like that). And if not, then “LOSE” (or something like
that.

solonjustinekitevangelista
Автор

hey i just started to learn javascript after 2 years of learning python and i see that you dont use id's for the elements. so my question is, wouldnt it be better to use document.getElementById and give the elements an individual id instead of document.querySelector ?

fumano
Автор

When I changed my attribute, the image was not visiblr

chinmaikhare
Автор

8:01 we can use ceil as well 😃 it took my some time to get understanding of it
function dice (){
return Math.ceil(Math.random()* 6);

}

vinay
welcome to shbcf.ru