Delete all character in string by sequence solve with javascript : There is a string = "WORLD"
now check to maintain the sequence W,O,R,L,D first delete W , then delete O, then delete R, then delete L, last delete D. You can use a delete button and a new word generator button. solve with javascript.