3 ms·
You make a good point and thanks for the performance link. I should have been more clear. The first and third examples are only comprable in the way they create
by panthomakos 15y ago
You make a good point and thanks for the performance link. I should have been more clear. The first and third examples are only comprable in the way they create closures - which is equivalent, but they are meant to demonstrate different things. The first demonstrates nested callbacks while the last example demonstrates named functions that are organized by closures.