DEV Community

Ania Kubow
Ania Kubow

Posted on

6 2

3 ways to code Rock, Paper and Scissors in JavaScript (beginner, intermediate and advanced approach)

In this video I show you how to code Rock paper Scissors in JavaScript in not just one approach, but 3 different approaches.

I am doing this to show you just some of the ways you can solve one problem using JavaScript. I will be using a more beginner approach to start off with, and move onto more intermediate and advanced approaches.

This is a JavaScript tutorial so there will be no styling in this tutorial. That part is totally up to you :)

Please do share your finished games with me, I would absolutely love to see what you have made and how you have chosen to style your games!

00:00​ Introduction
01:18​ Beginner Rock Paper Scissors
17:28​ Intermediate Rock Paper Scissors
32:45​ Advanced Rock Paper Scissors

You can find the code for all three games here: https://github.com/kubowania/rock-paper-scissors-x3


In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-top-tool​

If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow

Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips​

You can also find me on:
Twitter: https://www.twitter.com/ania_kubow
Instagram: https:///www.instagram.com/aniakubow

codingbootcamp​​ #coding​

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (1)

Collapse
 
nickytonline profile image
Nick Taylor

Great stuff Ania! I really enjoyed the premiere on YouTube today. Looking forward to your next video! 😎

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more