how to use do while in js? don't support?
Not supported as far as I know
It's not supported, but you can replace
do {
// something
} while (condition);
with
while (true) {
// something
if (!condition) break;
}
to get the same effect.