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>
 
(function() {
  
  var headerRow = [
     { text: 'test1',
       id: 1
     },
     { text: 'test2',
       id: 2
     }
  ];
  headerRow.forEach(function(entry, index) {
      headerRow[index] = entry.text;
  });
  display("headerRow: " + headerRow.join(", "));
  function display(msg) {
    var p = document.createElement('p');
    p.innerHTML = String(msg);
    document.body.appendChild(p);
  }
  
})();
Output 300px

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

Dismiss x
public
Bin info
anonymouspro
0viewers