Javascrip for loop not working : Can anyone tell me why this loop is not working when I put the start value of 2 in but it works when I do 1 or 10. 


    var button = document.getElementById('generate');
    var resultsDiv = document.getElementById('results');
	var start;
	var end;
    
    button.onclick = function(){
        resultsDiv.innerHTML = "";
        
        start = document.getElementById('start').value;
        end = document.getElementById('end').value;		
		
		generateTags(start,end);

    };
	
	function generateTags(start, stop){
	for(i=start; i<=stop; i++){
	console.log(i);
	}
	}
	
   