eg-259:lecture6
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-259:lecture6 [2013/02/07 20:48] – [Another Example] eechris | eg-259:lecture6 [2013/02/07 21:09] (current) – [Exercises] eechris | ||
---|---|---|---|
Line 693: | Line 693: | ||
myPlane = new Plane(" | myPlane = new Plane(" | ||
</ | </ | ||
+ | |||
+ | [[http:// | ||
---- | ---- | ||
Note by convention, constructors use upper case names to distinguish them from ordinary functions. Think //proper noun//. | Note by convention, constructors use upper case names to distinguish them from ordinary functions. Think //proper noun//. | ||
- | |||
===== Method Properties ===== | ===== Method Properties ===== | ||
Line 772: | Line 773: | ||
===== Exercises ===== | ===== Exercises ===== | ||
- | Write, test and debug (if necessary) | + | Use jsFiddle or some other method to write, test and debug (if necessary) |
- //Output//: A table of numbers from 5 to 15 and their squares and cubes, using alert. | - //Output//: A table of numbers from 5 to 15 and their squares and cubes, using alert. | ||
- | - //Output//: The first 20 Fibonacci numbers, which are defined as in the following sequence 1, 1, 2, 3, … where each number in the sequence is the sum of the two previous numbers. Use '' | + | - //Output//: The first 20 Fibonacci numbers, which are defined as in the following sequence 1, 1, 2, 3, … where each number in the sequence is the sum of the two previous numbers. Use '' |
- Modify the script of Exercise 2 to input a number, //n//, using '' | - Modify the script of Exercise 2 to input a number, //n//, using '' | ||
- // | - // |
eg-259/lecture6.1360270122.txt.gz · Last modified: 2013/02/07 20:48 by eechris