I have a very simple problem. I have a user input, and the text from the user input gets pushed into an array, then it is (in theory) turned into a string and then split into an array of each and every single character from the string. My question is how do I split a string in an array into an array 1 character long substrings.
let plaintext = document.getElementById("plaintext");
let startB = document.getElementById("start");
let plain = [];
let encryptStorage = [];
startB.addEventListener('click', () => {
plain.push(plaintext.value);
plain.toString();
encryptStorage.push(plain.split(''));
console.log(encryptStorage);
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CryptoMatic</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<input type="text" id="plaintext" placeholder="Plaintext">
<div id="start">
<div id="startT">Start</div>
</div>
<script src="app.js"></script>
</body>
</html>