mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
e
This commit is contained in:
parent
42ed231351
commit
694fe48e7f
@ -2,7 +2,10 @@ 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);
|
||||
const inputText = textInput.value;
|
||||
const lines = inputText.split(/[\n\r]+/);
|
||||
console.log(lines);
|
||||
const arr = ['first', 'second', 'third'];
|
||||
const modifiedArr = arr.map(i => '"' + i + '",');
|
||||
console.log(modifiedArr)
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user