<html>
<body>
<h1>JavaScript Arrays</h1>
<h2>The from() Method</h2>
<p>The from() method can return an array from any variable with a length property.</p>
<p>It can return a string as an array:</p>
<p id="demo"></p>
<script>
let text = "ABCDEFG";
const myArr = Array.from(text);
document.getElementById("demo").innerHTML = myArr;
</script>
</body>
</html>