Rock Paper Scissors Game

Hi everyone! I'm back. I've become something of a hermit. Hunkered down, studied JavaScript. In my last post, I felt like JS broke me. But, it didn't. I'm definitely nowhere near a master, but I am starting to feel much more comfortable with it.

And with that out of the way, look what I've made! * Drumroll, please! *







I know, it may not look like much, but it's a fully functional Rock Paper Scissors game coded with JS. I used a FreeCodeCamp tutorial as a guide. My main struggle with projects is chunking things up. I often look at the big picture and get overwhelmed, but this tutorial helped by showing me how to segment the logic and break it down into small chunks that need to be focused on. In my next project, I'm going to be mindful of how I compartmentalize my functions.

I've also learned in my studying that it's important to write meaningful, pure functions, with no side effects. Oh, and that I need to test...EVERYTHING. Making a tiny change? Console.log it. When I was writing on my own, I'd change 3 or 4 things, then see that the code wasn't working. I'd have to go back through multiple lines to see where my error was. Testing more frequently ended up saving me time in the long run.

I'm really happy with how it came out! If you want to try it out yourself or something else, here's the link to the playlist full of project ideas/tutorials!

-See ya soon!

Comments