In this JavaScript game tutorial, you will learn how to create a Simon game using JavaScript, HTML, and CSS. Every line of JavaScript is explained.
🔗Full code: https://github.com/beaucarnes/simon-game
🔗HTML file: https://raw.githubusercontent.com/beaucarnes/simon-game/master/index.html
🔗CSS file: https://raw.githubusercontent.com/beaucarnes/simon-game/master/css/style.css
Tutorial by Beau Carnes.
🐦Follow Beau on Twitter: @CarnesBeau
—
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://medium.freecodecamp.org
And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp
Original source
21 responses to “Simon Game JavaScript Tutorial for Beginners”
hi please tell me what free engine is good for coding javascript. what is this engine in this video?
amazing, really learned a lot thanks beau
Thank you so much. I started to learn java last week.
sir how could I send my gratitude to you
On 1.25x speed, he actually talks with exact normal talking speed
Amazing. Thanks from Paraguay.
thanks
@freeCodeCamp.org at 32:26 in the video I attempt to print to the console the filled array but nothing happens when I click start. Just to verify the project worked I copied the JS script and pasted it and run it. However I get an uncaught error property play or null for the function “four” audio.play(). Can someone explain why this happens. I am using sublime text with google chrome browser.
this teacher is the best!!!
that's what she said
thanks, i like Jews
I made it and I'm playing now. Thank you. But I guess I'm not very good at this game 🙂
https://codepen.io/Love2program/pen/qLNzRV?editors=0010 My code isn't working can someone help please? Thanks.
Thank you for your very educational video's! Keep up the good work!
why didn't you put brackets after game turn in intervalID. gameTurn is a function. Shouldn't there be brackets after it?
excuse me, can you tell me how to run these code
Hey guys, if anyone is interested I completed my Simon game from scratch with unlimited rounds to play with helpful comments.
Demo: https://shimphillip.github.io/simon-game
Code: https://github.com/shimphillip/simon-game
Great tutorial……
Thanks for this helpful video.
Hi thanks for the video.
At around 22 minutes in, when you use the if statement with strictButton.checked, couldn't you just do strict = strictButton.checked and not even need the conditional?
Guys Look at this please, have tried stack overflow….
VM144 index.js:22 Uncaught TypeError: Cannot read property 'addEventListener' of null
at VM144 index.js:22
(anonymous) @ VM144 index.js:22
index.js:1 Uncaught SyntaxError: Identifier 'order' has already been declared
at VM144 index.js:1
(anonymous) @ index.js:1