Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  The List of Shoes:
    <ul class="shoesNav"></ul>
  
  <script>
    $(function  () {
 
var shoesData = [{name:"Nike", price:199.00 }, {name:"Loafers", price:59.00 }, {name:"Wing Tip", price:259.00 }];
function updateAllShoes(shoes)  {
var theHTMLListOfShoes = "";
shoesData.forEach (function (eachShoe)  {
// Note the coupling and mixing of HTML and JavaScript; it is tedious to follow
 theHTMLListOfShoes += '<li class="shoes">' + '<a href="/' + eachShoe.name.toLowerCase() + '">' + eachShoe.name + ' -- Price: ' + eachShoe.price + '</a></li>';
    });
    return theHTMLListOfShoes;
}
$(".shoesNav").append (updateAllShoes(shoesData));
});
  </script>
</body>
</html>
Output 300px

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

Dismiss x
public
Bin info
jsissexypro
0viewers