WebFund 2013W Lecture 5: Difference between revisions

From Soma-notes
Flavoie (talk | contribs)
No edit summary
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
Topics for today are:
Topics for January 22, 2012 are:
* tutorial on git and github
* tutorial on git and github
* objects in JavaScript
* object and function basics in JavaScript


Audio will be posted here after class.
Audio for the lecture is [http://homeostasis.scs.carleton.ca/~soma/webfund-2013w/comp2406-2013w-lec5-22Jan2013.m4a here].
 
Notes on the git section of the lecture are [http://homeostasis.scs.carleton.ca/wiki/index.php/Github here].


==Questions==
==Questions==
These questions are now part of a quiz on cuLearn, due Thursday, Jan 24th, by noon.


# 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. (true/false)
# 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)

Latest revision as of 02:04, 26 January 2013

Topics for January 22, 2012 are:

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

Audio for the lecture is here.

Notes on the git section of the lecture are here.

Questions

These questions are now part of a quiz on cuLearn, due Thursday, Jan 24th, by noon.

  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. (true/false)
  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)