Fernando Papaqui

fp/dev

FizzBuzz Solution

Tonight I solved the FizzBuzz problem. A couple of week ago I read for the first time about this challenge and first I thought “I was born stupid” and abandoned, I didn’t even tried!

Now, after being immersed in deep programming hours day after day, I just remembered about this problem and suddenly I kind of knew what to do. And I did it, first using if else statements, and then I refactor the code using functions.

If else version

Functions version

I can go to sleep now, but I don’t want, I want to keep reading and practicing.

Yeah!

Fernando Papaqui

Front end web developer working with Gatsby, JS, React, and WordPress. Mexico native.