In JavaScript, how do I make a for loop that would make 7 variables with the same value,but different names. So, I want to take a string and subtract the last two letters. I do this with
var stringExample = prompt("Blah blah"); 
var stem = stringExample.substring(0, stringExample.length-2);
And then make 6 more of the stem variables with the names of stem0 through stem6. Right now my code is:
for (var i = 0; i < 7; i++) {
    eval('var stem' + i + '= toDecline.substring(0, toDecline.length - 2');
};
 
     
     
     
    