Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<input id="i" type="text" name="text" size="10" value="777">
<button id="move">move</button>
<button id="clear">clear</button>
<br>
<textarea id="t" cols="40" rows="20"></textarea>
<script>
const b = document.getElementById("move");
const t = document.getElementById("t");
const i = document.getElementById("i");
const c = document.getElementById("clear");
b.addEventListener("click", function(){
let out = "";
const str = i.value;
for (let i = 0 ; i < str.length ; i++){
out += str.slice(i,i+1)+"\n";
}
t.textContent = out;
});
c.addEventListener("click", function(){
i.value = "";
});
</script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
iWillWriteLaterpro
0viewers