DEV Community

Discussion on: FizzBuzz JavaScript

 
jpantunes profile image
JP Antunes • Edited

Interesting. What do you think happens after each if statement?
Or in another way, what is the difference between two or more if's and a chain of if, else if, else?

edit: a picture of my cat doing a code review :-)
visual

Thread Thread
 
akhilpokle profile image
Akhil

oh yeah, that else part is a really bad bug from my side
it should be

if(str ="") str += n;

what this video : youtube.com/watch?v=QPZ0pIK_wsc