It is just a comma expression. They are allowed in a lot of places. It is a C legacy thing and has been in JS since day one (or week 2 at least). The result of the comma expression is the last expression. It is used by tools but most humans stay away from them.