Leave a like if this video helped you, also give me feedback and suggestions for more projects!
@hopetangunu7296
3 жыл бұрын
How would I add commas to the count for big numbers?
@patrickmardiyanto7748
2 жыл бұрын
how if i want the counter stop in 0,, if the number is 0 when user press minus button the count not get decrement
@yy.u.i
2 ай бұрын
Short, precise and clear. Thank you!
@CodePhilipYT
2 ай бұрын
Thank you :)
@CzEnglish
2 жыл бұрын
Thank you so much. These short easy examples really help to learn the basics propertly!
@alexanderblack8
3 жыл бұрын
I love you random developer from youtube
@hassanbajwa5640
3 жыл бұрын
ohhhh maaaaan the way you code...ahhhh thanku so much,best code for beginner.
@pratitibera8639
3 жыл бұрын
Can you do the same for multiple input fields? But the same increment and decrement functions should be called for all the fields. Can you do that using javascript only??
@sultanrasul2794
2 жыл бұрын
Thanks this helped me!
@swathivenkatesh465
2 жыл бұрын
Thanks! Very helpful
@romaromanych4832
4 жыл бұрын
Thank you. Helped me)
@studyireland
Жыл бұрын
Your videos are amazing...
@kottamanvith3120
Жыл бұрын
Thanks a lot!
@milevojmatijas1852
Жыл бұрын
Thanks for the video. How would you save the incremented value and then add the saved value in a result? For example, you are counting the number of the guests that entered the bus. Then you click the total button to see how many guests entered the bus?
@Servetcan
2 жыл бұрын
thanks bro !
@rjtkoh
3 жыл бұрын
very good thank you
@otmanechentoufi4894
3 жыл бұрын
thanks , very usefull
@AtomTCP
2 жыл бұрын
If number 10 in counter how can automatic change color
@ujjwalanand6687
3 жыл бұрын
Why not you defined the integer inside a function... Would you please tell me???
@ianmotaln
Жыл бұрын
how can i add to the counter that id does not go below 0
@gaurangraut1717
3 жыл бұрын
More video please
@webber5629
3 жыл бұрын
Thanks but i want to decrease number but not decreases less than 1 mean no negative num.
@patrickmardiyanto7748
2 жыл бұрын
do you get the code??
@DamosyTheFreckle
16 күн бұрын
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?
@CodePhilipYT
3 күн бұрын
Hey, for that u need to store the value. You could use a database or localstorage. Maybe you can read into that. You will need to run it on a server though, for local development xampp is best as you can also use sql databases there! Good luck
@DamosyTheFreckle
3 күн бұрын
@@CodePhilipYT Thanks for replying! I managed to implement firebase firestore in my project and it worked out pretty well for me. Will certainly try out the other forms of databases in the near future.
@marvingazo2140
3 жыл бұрын
how to do this in Matlab?
@ripplesr5655
3 жыл бұрын
dude,how do u make a limit to this count?e.g. number hits 0 and stops there?
@fattrat4292
3 жыл бұрын
if (number == yourNumberHere) { removeEventListener(event, function) } this will remove the event listener and after the number hits the limit the increment button stops working
@cheetos9818
3 жыл бұрын
@@fattrat4292 do u know how to add a save score button???
@fattrat4292
3 жыл бұрын
@@cheetos9818 do u just want the website to display the score on the screen or console.log it or actually store it so that next time when u open the website u can access the stored number
@fattrat4292
3 жыл бұрын
@@cheetos9818 if you just want to display it then you can just make a new div element or p element and do document.getElementById('yourDiv').innerHTML = theScore now "theScore" will be the element that specifies the score/number so whenver it changes the saved score changes too(i think it changes, it might now i haven't really done it)
@patrickmardiyanto7748
2 жыл бұрын
@@fattrat4292 dude if i hits the limit is 0 so when my number start from 0 the event will can't running,, i need your help when i press the plus button counter get increments but when i press the minus button the limit is 0
@lajigsaa4982
2 жыл бұрын
Can u reply here the code for my activity
@amnaramzanawan2046
2 жыл бұрын
counter can't be in negative value.correct yourself
Пікірлер: 38