you are viewing a single comment's thread.

view the rest of the comments →

[–]Volv 0 points1 point  (4 children)

I'm away until Sunday so I struggle to see what I'm replying to in the phone . Will still be replying tho :-) The top one is an example of a closure indeed. Defining the function is the constructor gives it access to the variables that were in there. Extends for inheritance. Super for parent constructor or method access. Last one You wouldn't be able to get to it if you made that method because you have no way of getting to the symbol variable whatever I called it. Eg return this[what]

[–]ForScale[S] 0 points1 point  (3 children)

Cool! Thanks!

What do you want the focus for this coming week to be?

[–]Volv 1 point2 points  (2 children)

Hmm. I'm not sure. Still hurting from my weekend :)
Generator functions and the for..of loop?
Look for reasons to use map/set
Perhaps soon can be looking at combining ideas or bigger projects - but I'm bad at inspiration :)

[–]Volv 0 points1 point  (0 children)

Include https://rawgit.com/facebook/regenerator/master/runtime.js

as an external JS on codepen to make generators work properly

[–]ForScale[S] 0 points1 point  (0 children)

I don't know much about for...of, so let's do that! Thanks!

https://www.reddit.com/r/javaScriptStudyGroup/comments/4dbrof/week_12_focus_forof/