DEV Community

loading...

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

Collapse
klvenky profile image
venkatesh k Author

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

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 k Author

Yeah that wouldn't work in that case.