- This is simple project with sorting data: alphabetically, with length text and randomly, with data input from user.
- Using the function of dividing text and joining in an array:
function takeWords(){
StringText = textArea.value;
words = StringText.split("\n");
}
function sortInTurn(){
takeWords();
listEl.innerHTML = words.join("<br>");
}
https://brq1.github.io/Sorter/src
- Enter a data in textarea. The input text must be entered 1 word in 1 line.
- Next you select function to sort.
- It is possible to add text at any time
=======