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>
  <p>(Look in the console for the output.)</p>
  <script>
    (function() {
      var Buy = "Buy", String = "String", Question = "Question";
      var nyCourt = [];
      var oldArr = [Buy, String, Question];
      
      for (var i = 0; i < oldArr.length; i++) {
        nyCourt.push({Title: oldArr[i] });
      }
      console.dir(nyCourt);
      
      function display(msg) {
        var p = document.createElement('p');
        p.innerHTML = String(msg);
        document.body.appendChild(p);
      }
    })();
  </script>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers