Message from JavaScript discussions

August 2017

— Holy shit


Yo people can somebody explain what yield is really for? Any use case because I don't really get what the documentation means by generator

— Wtf is that elseif cascade shit

— Found in a little part of that famous class

— Returning multiple values

— Generators are for creating for example infinite lists

— Or a list of values that are computed sequentially

— I am so confused about this RegExp

— It's like getting cast to some other data type after being accessed with bracket notation

— It is an object... And then it's not

— Weird

— Can you make a simple example?