Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var readDate = a=>{r=[];var b=[d,f,e]=a.split`
`.map(n=>n.split``);Array(Math.max(...b.map(n=>n.length))).fill().map((m,i)=>{(m=f[i])&&m!=" "&&(c=m);[d,e].map(m=>(g=m[i])&&g!=" "&&(r[g-1]=c))}),r.splice(4,0,"-"),r.splice(7,0,"-");return r.join``};
[
  `2  3  1  4
0  1  2  3  7
5     67    8`,
  `2  3  1     4
0  1  2  4  5
   5  67 8`,
  `     1234
1    2
5678`,
  `   1     3  24
0  1  2  7  8
57    6     8`,
  `2   4   1   3
0   1   2   6
5       678`,
  `      1 4 2 3
0 1 2 3 4 5 6 8
6 5 7         8`
].map((a)=>console.log(a, readDate(a)))
Output

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

Dismiss x
public
Bin info
Gothdopro
0viewers