Difference between revisions of "WebFund 2013W Lecture 5"

From Soma-notes
Jump to navigation Jump to search
Line 7: Line 7:
==Questions==
==Questions==


# Every object in JavaScript has a <tt>prototype</tt> property.
# 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.
# In the method invocation pattern, a function returns what value if there is no explicit <tt>return</tt> statement?  (one word)
# 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 constructor invocation pattern, a function returns what value if there is no explicit return statement? (one word)

Revision as of 13:25, 22 January 2013

Topics for today are:

  • tutorial on git and github
  • objects in JavaScript

Audio will be posted here after class.

Questions

  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. In the method invocation pattern, a function returns what value if there is no explicit return statement? (one word)
  4. In the constructor invocation pattern, a function returns what value if there is no explicit return statement? (one word)
  5. In the function invocation pattern, this is bound to which object? (one word)
  6. The apply function invocation pattern does not allow you to set the value of this. (true/false)
  7. The use of that is to get around the limitations of the function invocation pattern. (true/false)