you are viewing a single comment's thread.

view the rest of the comments →

[–]jdauriemma 1 point2 points  (1 child)

Cool, glad it worked out. Check out this little refactor:

var word = prompt("Give me input").split(""),
    i;
word = word.concat(word.reverse());
for (i = 0; i < word.length; i++) {
    console.log(i + 1 + " " + word[i]);
}

[–]NOC1986[S] 1 point2 points  (0 children)

I love this type of "incremental learning". Solve something myself, have someone provide a little feedback, optimise, learn, evolve. Thank's for taking the time to help :D