Show all value inside or outside a JS Loop : I made this JS loop.

    var intt =number;
		var divider=[intt];
		var i;
		var count=0;
		var b;
		var temp=0;
		var temp2=0;
		for(i=1; i<=intt; i++){
			
			if(number%i==0){
				divider[count]=i;
				b=count++;
			
			}		
		}

I was wondering, how do I put all the values of loop in an `alert()`?