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)
}
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)
}
For further actions, you may consider blocking this person and/or reporting abuse
jin -
Mayank Chawdhari -
Mayank Chawdhari -
Ayush Kumar Vishwakarma -
Top comments (10)
LOL man that was nice
Simple as one two three:
😀 you got it!
I like those kind of things (the famous destroy all software videos and such). In some languages you might have
range(0,10, 0.5)
where last value is the step size so it give more flexibility. In others you only have things like1..10
or1 to 10
.Just for the laughs you might consider having step size in form of
while(x -(0.5)-> 10)
and when someone asks why would operator be -()-> you can respond with "because I can" or "why not" XD.This is clever. Nice!
Keeping it simple - like it.
Pretty amusing. The lexer for javascript is weak in terms of enforcing code to be well written.
how did you implement this in runkit? and I really like the idea, and you can save some typing
You mean embed? You can use liquid tags to do a lot of stuff here. That includes embedding runkit like so: