Mypages.valdosta.edu

However, you can encapsulate data and methods into objects. A JavaScript object is a list of . name:value. pairs. An example of a JS . literal . is: var person = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"}; A JS object can also be created as shown below. However, the preceding technique is preferred because it is simpler, more ... ................
................