From d8378a8427b01664bf5fec8d159e6d88215f048e Mon Sep 17 00:00:00 2001 From: nikeyambing Date: Wed, 19 Apr 2017 22:30:01 -0700 Subject: [PATCH] fixed the last character --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b3625db..fc282e0 100644 --- a/index.html +++ b/index.html @@ -34,7 +34,7 @@ { el.innerHTML = el.innerHTML+words[word_counter][character_counter++]; - if(character_counter == words[word_counter].length) + if(character_counter == words[word_counter].length + 1) { word_counter++; //choose a different word character_counter = 0; //start over with the first character of the word @@ -52,4 +52,4 @@ - \ No newline at end of file +