Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
    <div id='imageDiv'></div>
    
</body>
</html>
 
let imageDiv = document.querySelector("#imageDiv");
let imageEl = document.createElement("img");
imageObject = {
    
    source: "https://assets-cdn.github.com/images/modules/open_graph/github-octocat.png",
    
    name: "Cut little octor cat",
    
    iFindItOn: "Google",
    
    whatIUseToCode: "JSBin",
    
    isThisAnObject: "Yes"
    
}
imageEl.setAttribute("src",imageObject.source);
imageDiv.appendChild(imageEl);
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers