var sentences = ['sentenceone', 'another sentence', 'another sentence again'];
$(".btn").on('click', function() {
for(var i=0; i < sentences.length; i++) {
samplebox.innerHTML += '<p>'+sentences[i]+'</p>';
}
});
This displays all of them in one click. How do I fix this?