Learn the JavaScript DOM With This Project - Memory Game

  Рет қаралды 22,351

dcode

dcode

Күн бұрын

Пікірлер: 30
@dcode-software
@dcode-software Жыл бұрын
*MORE JAVASCRIPT PROJECTS* 👇 kzbin.info/aero/PLVvjrrRCBy2KvTPJ-HLG4PRqYf-MVJ0h7 *ENROL IN THE ULTIMATE JAVASCRIPT DOM CRASH COURSE* 👇 www.udemy.com/course/the-ultimate-javascript-dom-crash-course/?referralCode=DC343E5C8ED163F337E1
@justinstewart3060
@justinstewart3060 7 ай бұрын
I have watched this video and rewatched this video. I learned alot from this project. I have made simple projects like "to-do lists" and such but I haven't used "return" hardly at all. This project really showed me how to use the "return" statement and "true/false" statements. I made this project 3-4 different times. Had to keep watching parts of your video when I would get stuck but I eventually made it on my own. Everything seems very simple eventually once you learn why things are doing what they are. Thanks for the video, your way of teaching is awesome, keep it up!
@yoonei5373
@yoonei5373 3 ай бұрын
ur teaching method is really good thanks😍
@dcode-software
@dcode-software 3 ай бұрын
🙏🙏
@alhamdulilah6892
@alhamdulilah6892 Жыл бұрын
Amazing tutorial, really needed this to practice Js, Thanks Dom!
@kubataiupov1245
@kubataiupov1245 5 ай бұрын
Nice and helpful video. Thank you man!
@devvv4616
@devvv4616 2 ай бұрын
I think it would help us follow more if you made a pseudocode or at least a rough draft of your plan
@gabebott9254
@gabebott9254 Жыл бұрын
Great tutorial for a beginner. I am having trouble with the game not letting me click on more tiles after the initial 2 disappear. What do you think could be causing this?
@JohnCoffeyLikeTheDrink
@JohnCoffeyLikeTheDrink Жыл бұрын
You probably already solved it, but looking at console it says theres a problem with line 75 in java script
@valenciawalker6498
@valenciawalker6498 8 ай бұрын
Thank you!
@rigohernandez1770
@rigohernandez1770 Жыл бұрын
On line 13 (time 11:16), you used colorsPicklist.length. Isn't this equivalent to tileCount which is declared on line 4?
@znkdev
@znkdev Жыл бұрын
nice! what is this extension that you type .classname and add a div
@dcode-software
@dcode-software Жыл бұрын
Hey. It's part of VS Code. No extension needed 🙂
@znkdev
@znkdev Жыл бұрын
@@dcode-software mine doesn't do it, I'll check it again. TY
@xbox360fan1956
@xbox360fan1956 Жыл бұрын
18:16 when I add the event listener it only changes the last colour regardless of what tile I click on. I can't click on any other tiles after the last colour has been revealed.
@xbox360fan1956
@xbox360fan1956 Жыл бұрын
Update: I didn't use your method but somehow after copying and pasting random code I got it to work. It is now 4am and I crushed 3 energy drinks. I also have no idea what I'm doing with my life. Is this how software development works?
@CrazyAshu34
@CrazyAshu34 Жыл бұрын
could you tell me your Vs Code theme Name_🙆
@86_magical30
@86_magical30 Жыл бұрын
Why are you using functional programming I thought your signature was OOP ?
@dcode-software
@dcode-software Жыл бұрын
Hey, not all the time. I aimed this video toward beginners who'd probably find functional programming a bit simpler. Besides, no harm in functional programming 😎
@TsoiIzAlive
@TsoiIzAlive Жыл бұрын
Dom teach me the DOM
@dcode-software
@dcode-software Жыл бұрын
😎 that's right
@TsoiIzAlive
@TsoiIzAlive Жыл бұрын
@@dcode-software To make this project better once its finished is, one could add a button that resets all the tiles and variables. Its a good practice instead of smashing a location.reload() on the button.
@JVM-ok5eg
@JVM-ok5eg 9 ай бұрын
Dom teaching DOM 😂😂
@techballerina
@techballerina Жыл бұрын
doesnt seem to workout for me in intellij.
@ajayathapa8251
@ajayathapa8251 Жыл бұрын
How did you get more tha 8 colors after splice??? When using splice it detuct 1 element. So, usng for loop it delete 8 color element. Plz explain???
@dcode-software
@dcode-software Жыл бұрын
Hey, I'm not sure. Just make sure that you've copied the code exactly from what's on the video. You can also download the code by visiting the link in description if you need.
@darthchris623
@darthchris623 Жыл бұрын
@@dcode-software I had the same problem. The splice doesn't work. JS only prints 8 colors. Furthermore, I got 3 of the same color.
@nikolalazic3077
@nikolalazic3077 Жыл бұрын
@@darthchris623 @ajayathapa8251 you are better off using a shuffle function. If you dont know how to do it, just google "javascript shuffle" and look to stack overflow, some guy made a good function for it. You wanna then remove the index in the for loop and make a variable to store the shuffled array outside of the loop IK you most likely solved this but this is for any newbie that has trouble with this as well
@darthchris623
@darthchris623 Жыл бұрын
I don't understand how awaitingEndOfMove and activeTile work. From my point of view, they are 'empty' variables. They shouldn't work.
7 Powerful JavaScript Methods You NEED To Know
12:15
dcode
Рет қаралды 5 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 21 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 8 МЛН
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 11 МЛН
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 183 МЛН
Awesome Vanilla JavaScript Memory Card Game Tutorial
58:30
developedbyed
Рет қаралды 63 М.
Build a Dev Portfolio as a 2D Game - JavaScript Course
1:37:41
freeCodeCamp.org
Рет қаралды 153 М.
JavaScript DOM Manipulation Mastery: A Comprehensive Guide
1:25:33
Envato Tuts+
Рет қаралды 47 М.
3+ Ways to Write Clean Code in JavaScript
13:33
dcode
Рет қаралды 10 М.
JavaScript Fighting Game Tutorial with HTML Canvas
3:56:20
Chris Courses
Рет қаралды 8 МЛН
Memory Card Game - JavaScript Tutorial
34:16
freeCodeCamp.org
Рет қаралды 179 М.
Tic Tac Toe in JavaScript (Super Simple!)
38:05
Code with Ania Kubów
Рет қаралды 12 М.
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 21 МЛН