diff --git a/other/urls to array/index.html b/other/urls to array/index.html new file mode 100644 index 0000000..7840aeb --- /dev/null +++ b/other/urls to array/index.html @@ -0,0 +1,11 @@ + + +
+ + + + + + + + \ No newline at end of file diff --git a/other/urls to array/index.js b/other/urls to array/index.js new file mode 100644 index 0000000..7aebe9a --- /dev/null +++ b/other/urls to array/index.js @@ -0,0 +1,8 @@ +const textInput = document.getElementById("textInput"); +const processButton = document.getElementById("processButton"); + +processButton.addEventListener("click", function () { + const inputText = textInput.value; + const lines = inputText.split(/[\n\r]+/); + console.log(lines); +});