A Pen by damian

Thumbnail
This awesome code was written by 0damian, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 0damian ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  damian</title>
  
  
  
  
  
</head>

<body>

  <div id="out"></div>
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/0damian/a-pen-by-damian-wprmBX */
var staff = {
 "a": {
   "name": "Daisy",
   "dept": "Product"
 },
 "b": {
   "name": "Damian",
   "dept": "Intl"
 }
};

var arr = [0,1,2,["a","b","c"]];

var out = document.getElementById("out");
// out.innerHTML = staff.a.name + ", " + staff.a.dept;
for (var i=0;i<arr.l)
out.innerHTML = arr[3][0];

Comments