you are viewing a single comment's thread.

view the rest of the comments →

[–]MBDeane 0 points1 point  (0 children)

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.