Closed visaruruqi closed 1 month ago
Here is a side-by-side comparison of this code in RunJS and the chrome console:
RunJS Version 2.12.1 (2.12.1)
https://github.com/user-attachments/assets/645736e3-888d-416a-a3e7-e5cad539231b
found the guilty feature
RUN THIS IN RUNJS you will see a wrong output
for (let i = 1; i <= 100; i++) { if (i % 3 == 0 && i % 5 == 0) { console.log("FizzBuzz"); } else if (i % 3 == 0) { console.log("Fizz"); } else if (i % 5 == 0) { console.log("Buzz"); } else { console.log(i); } }
run the same in chrome, it will come just with right order