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>
 
/* Get Programming with JavaScript
 * Listing 10.01
 * Bracket notation for object properties
 */
var ages = {};
ages["Kandra"] = 56;
ages["Dax"] = 21;
console.log(ages.Kandra);
console.log(ages.Dax);
/* Further Adventures
 *
 * 1) Add a couple more properties to
 *    the ages object.
 *
 * 2) Change the calls to console.log
 *    to use square bracket notation as well.
 *
 */
Output

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

Dismiss x
public
Bin info
jrlarsenpro
0viewers