Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript increment by 1

let number = 1;
let increaseButton = document.querySelector('#button');

function addNumber(){
 number++;
}

increaseButton.addEventlistener('click',addNumber);
 
PREVIOUS NEXT
Tagged: #javascript #increment
ADD COMMENT
Topic
Name
1+5 =