Difference between revisions of "WebFund 2013W Lecture 5"

From Soma-notes
Jump to navigation Jump to search
Line 11: Line 11:
# Every object in JavaScript has a <tt>prototype</tt> property. (true/false)
# Every object in JavaScript has a <tt>prototype</tt> property. (true/false)
# The <tt>prototype</tt> property is used when updating and retrieving an object's properties.
# The <tt>prototype</tt> property is used when updating and retrieving an object's properties.
# In the method invocation pattern, a function returns what value if there is no explicit <tt>return</tt> statement?  (one word)
# In the constructor invocation pattern, a function returns what value if there is no explicit return statement? (one word)
# In the function invocation pattern, <tt>this</tt> is bound to which object? (one word)
# The apply function invocation pattern does not allow you to set the value of <tt>this</tt>. (true/false)
# The use of <tt>that</tt> is to get around the limitations of the function invocation pattern. (true/false)
# The <tt>for in</tt> construct in JavaScript is not so useful because it loops over all of the accessible properties of an object. (true/false)
# The <tt>for in</tt> construct in JavaScript is not so useful because it loops over all of the accessible properties of an object. (true/false)

Revision as of 15:24, 22 January 2013

Topics for today are:

  • tutorial on git and github
  • object and function basics in JavaScript

Audio will be posted here after class.

Questions

These questions will be on cuLearn after the lecture.

  1. Every object in JavaScript has a prototype property. (true/false)
  2. The prototype property is used when updating and retrieving an object's properties.
  3. The for in construct in JavaScript is not so useful because it loops over all of the accessible properties of an object. (true/false)