I am totally new in javascript and trying to make hangman game, I can take letters from users and check it perfectly .. but i have faced a problem in putting the letters (the right letters which the user choosing) in the right order like:
- i have a word table
- the user clicked on h and h is in the word chair
- the user clicked on r and r is in the word chair
- the user clicked on a and a is in the word chair
- the user clicked on i and i is in the word chair
- the user clicked on c and c is in the word chair
now the word has been written hraic

the question is : what can i do to make the letters in right order.

Thanks in advance