I made a new JavaScript operator!

Siddharth - Jun 5 '21 - - Dev Community

Can you figure out how?

let x = 10;
// The new arrow operator – goes from one number to another
while (x --> 0) { // x goes to 0
  console.log(x)
}
Enter fullscreen mode Exit fullscreen mode
let x = 10; // The new arrow operator – goes from one number to another while (x --> 0) { // x goes to 0 console.log(x) }
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .