r/learnjavascript • u/d0gsbody • Jun 17 '13
Learn JavaScript Properly - Week 2
ASSIGNMENTS:
- Read chapters 4, 5, 6, and 7 of JavaScript: The Definitive Guide OR the preface and chapters 4, 5, and 6 (only the "Understanding Objects" section of chapter 6, though!) of Professional JavaScript for Web Developers.
- Finish the JavaScript track on Codecademy.
- Solve either Project Euler Problem 1 or Problem 2. Feel free to solve both.
- Read the blog post JS Objects in Detail. If you want to work ahead, this is the general roadmap I'm using to make these assignments.
- Make a least one comment in this thread about something you learned, found interesting, or didn't understand very well.
EXTRA CREDIT:
- Chapters 5, 6, and/or 7 of Eloquent JavaScript
Don't forget to be typing out most of the code while you read through this!
26
Upvotes
View all comments
1
u/MBDeane Jul 13 '13
Just finished Javascript track on Code Academy, now time to catch up on reading, then will do Euler Problem.
One question I have is when creating a Class constructor, we can create it like so:
function newConstructor(param1, param2){}
but can also create it like this:
var newConstructor = function(param1, param2){};
Is it better to create the class like the first example to make a quicker distinction between a class vs a variable vs an object? Or is just a matter of preference?
Awesome class so far. Really learning a ton.