Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var a=50;
- function decrease(){a--;document.getElementById('boldstuff').innerHTML= +a;}
- function increase(){a++;document.getElementById('boldstuff').innerHTML= +a;}
- if (a < 0)
- a = 0;
- if (a > 50)
- a = 50;
- var a=50;
- function decrease(){ a = Math.max( a-1,0) ; document.getElementById('boldstuff').innerHTML= a;}
- function increase(){ a = Math.min( a+1,50); document.getElementById('boldstuff').innerHTML= a;}
- var a=50;
- function decrease(){
- if(a > 0){
- a--;
- document.getElementById('boldstuff').innerHTML= +a;
- }
- }
- function increase(){
- if(a < 50){
- a++;
- document.getElementById('boldstuff').innerHTML= +a;
- }
- }
- var a=50;
- function decrease(){if(a>0){a--;document.getElementById('boldstuff').innerHTML= +a;}}
- function increase(){if(a<50){a++;document.getElementById('boldstuff').innerHTML= +a;}}
- var a=50;
- function decrease(){
- if (a > 0) {
- a--;
- document.getElementById('boldstuff').innerHTML = a;
- }
- }
- function increase(){
- if (a < 50) {
- a++;
- document.getElementById('boldstuff').innerHTML = a;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement