WebFund 2013W Lecture 4: Difference between revisions

From Soma-notes
Cdelahou (talk | contribs)
added notes
Cdelahou (talk | contribs)
formatting
 
Line 5: Line 5:
Javascript, the good parts Chap 3 & 4
Javascript, the good parts Chap 3 & 4


== Objects
=== Objects ===
JS uses prototypical inheritence


var x = {  
JS uses prototypical inheritance
  property : val,
 
  "prop2": val + val2,
  var x = {  
  'prop3': 1122334433
    property : val,
}
    "prop2": val + val2,
    'prop3': 1122334433
  }


* Has some implicit and explicit properties/members
* Has some implicit and explicit properties/members
* access undefined property is valid operation. Returns undefined
* access undefined property is valid operation. Returns undefined

Latest revision as of 18:48, 24 January 2013

The audio for Lecture 4 is here.

Notes

Javascript, the good parts Chap 3 & 4

Objects

JS uses prototypical inheritance

 var x = { 
   property : val,
   "prop2": val + val2,
   'prop3': 1122334433
 }
  • Has some implicit and explicit properties/members
  • access undefined property is valid operation. Returns undefined