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>
 
n=prompt();a="A0A#0B0C0C#0D0D#0E0F0F#0G0G#".split(0);r=a.indexOf(n[0]);n[x=1]=="#"&&(r++,x++);n[1]=="b"&&(r--,x++);s=r+4;l=r+7;(n[x]=="m"||!n[x])&&s++;s%=12;n[x]=="+"&&l++;!n[x]&&l--;l%=12;alert(a[r]+" "+a[s]+" "+a[l])
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers