A copy of the JavaScript functions in the head element:
// sample-9-6-object-literal-functions.js
// NONE - this file is empty
      
A copy of the JavaScript in the body element:
// sample-9-6-object-literal.js
// Object literal sample
var mary = { first : "Mary", last : "Jones", id : 654321 }

document.write( mary.first, " " );  // using object.property style of retrieving the value
document.write( mary["last"] );     // using associativeArray["key-string"] style of retrieving the value