DEV Community

Discussion on: I made a new JavaScript operator!

Collapse
acelot profile image
acelot

Simple as one two three:

let x = 10;

while (x-- > 0) {
  console.log(x)
}
Enter fullscreen mode Exit fullscreen mode
Collapse
siddharthshyniben profile image
Siddharth Author • Edited on

😀 you got it!