JavaScript Project: Counter
Vložit
- čas přidán 8. 09. 2024
- JavaScript adds interactivity to any of the webpages you see. That is why UltraDevX has started created this tutorial a JavaScript project so you can learn JavaScript. With this tutorial you will be able to create a counter in HTML, CSS and JavaScript. I recommend every one should do this tutorial as the basics are the most important. We will add some buttons so you can increase, decrease or reset the timer.
Subscribe, as it helps a lot.
➡️ Subscribe: bit.ly/2OtU0m7
----------------------------------------
+ Video files
bit.ly/3qmToMZ
😀️ Links
Github: github.com/Ult...
Dev.to: dev.to/ultradevx
wooo
Very nice and accurate explanation, thank you
Glad you liked it!
I really liked the way u explained it. It was very engaging and very cool
too!
Glad you liked it.
straight to the point no bs
Thank you
Great job and explained every bit perfectly!
Glad it helped.
I did this, it is amazing! But everytime I refresh or close tab, I lose the number where I previously left off. How do I make it such that everytime I refresh, i still get the previously stored number?
Hello @DamosyTheFreckle, thanks for the compliments. I am thinking of starting to upload again very soon. I will then upload a video where we can store the counter.
Thanks for your simple, easily understood video. Superb.
From this I got my first successful javaScript, HTML, css project.
Glad it helped.
@@ultradevx Do you have email?
Thank you for support
Any time!
Thank you
Glad you liked it
With this code how can I disable the decrease button if the value < 0? Nice video.
I updated the github repo to disabled the decrease button if the value is less than 0.
it was a great video .
Thank you
thank
Your welcome.
hyy yrr why did'nt you show output after write a several line of code😪
I thought the final output would be sufficient. Will note your point for my future videos.
What The extensii is that for ===??
The === checks if the two values are equal.
so If I have the if (count > 0) {
counter.styles.color = 'green';
}
if (count < 0) {
counter.styles.color = 'red';
}
if (count === 0) {
counter.styles.color = 'black';
}
my code doesn't work, if I comment it out everything works
I get an error in the console that says Uncaught TypeError Can not set properties of undefined (setting 'color') would you know why?
Change all the styles to style
@@ultradevx that worked thanks
Your welcome
there is additional 's' in your code (styles) that you need to remove for it to work. I think it should be :
if (count > 0) {
counter.style.color = 'green';
}
if (count < 0) {
counter.style.color = 'red';
}
if (count === 0) {
counter.style.color = 'black';
}
The files dont seem to work anymore
When I downloaded the files, it was working fine on my computer.
same but nice work
Hi sir u still developing?
Hello sir, I still code but I am not able to find time to make videos.
any way to make it animated?
It will be very hard to make the counter animated as you will have to install a lot of things.
@@ultradevx could you make a tutorial about it?
Ok
I added the animations in the github repository. This is the link: github.com/UltraDevX/js-project-counter. I used CSS keyframes to add the animations.
It's not working this is false
Check if you did all the steps properly. It worked for me and many people.