DEV Community

Discussion on: Is there a good temporary variable name that you use?

Collapse
 
klvenky profile image
Venkatesh KL

Thanks Mihail. This looks good.
I stopped using do-while for quite some time. This looks to a very good use case. Thanks :)

Collapse
 
qm3ster profile image
Mihail Malo • Edited

I wish it let me do while (token = res.newToken), but res goes out of scope there. Too bad for JS spec.

Thread Thread
 
klvenky profile image
Venkatesh KL

Yeah that wouldn't work in that case.