A Pen by damian

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" >

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


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

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



/*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];