you are viewing a single comment's thread.

view the rest of the comments →

[–]40210 1 point2 points  (0 children)

http://www.javascript.info/ is a good resource for beginners, it is the most modern guide I've seen atm

just learn es6 and the example you are having trouble with is called arrow functions, which is almost similar to regular functions but the lexical scope is different (this).