Learn the JavaScript DOM With This Project - Memory Game

  Рет қаралды 21,776

dcode

dcode

Күн бұрын

View the SOURCE CODE:
dcode.domenade...
The best way to learn the JavaScript DOM is to build something with it. In this video, we'll be building a memory game.
🏫 My Udemy Courses - www.udemy.com/...
🎨 Download my VS Code theme - marketplace.vi...
💜 Join my Discord Server - / discord
🐦 Find me on Twitter - / dcodeyt
💸 Support me on Patreon - / dcode
📰 Follow me on DEV Community - dev.to/dcodeyt
📹 Join this channel to get access to perks - / @dcode-software
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
#dcode #javascript

Пікірлер: 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 5 ай бұрын
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 Ай бұрын
ur teaching method is really good thanks😍
@dcode-software
@dcode-software Ай бұрын
🙏🙏
@devvv4616
@devvv4616 13 күн бұрын
I think it would help us follow more if you made a pseudocode or at least a rough draft of your plan
@kubataiupov1245
@kubataiupov1245 3 ай бұрын
Nice and helpful video. Thank you man!
@alhamdulilah6892
@alhamdulilah6892 Жыл бұрын
Amazing tutorial, really needed this to practice Js, Thanks Dom!
@valenciawalker6498
@valenciawalker6498 6 ай бұрын
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?
@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 11 ай бұрын
You probably already solved it, but looking at console it says theres a problem with line 75 in java script
@CrazyAshu34
@CrazyAshu34 Жыл бұрын
could you tell me your Vs Code theme Name_🙆
@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?
@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
@techballerina
@techballerina Жыл бұрын
doesnt seem to workout for me in intellij.
@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.
@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 10 ай бұрын
@@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
@JVM-ok5eg
@JVM-ok5eg 7 ай бұрын
Dom teaching DOM 😂😂
@darthchris623
@darthchris623 Жыл бұрын
I don't understand how awaitingEndOfMove and activeTile work. From my point of view, they are 'empty' variables. They shouldn't work.
Awesome Vanilla JavaScript Memory Card Game Tutorial
58:30
developedbyed
Рет қаралды 63 М.
7 Powerful JavaScript Methods You NEED To Know
12:15
dcode
Рет қаралды 5 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 108 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 55 МЛН
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 264 МЛН
i fell for mocks again...
9:08
TheVimeagen
Рет қаралды 19 М.
Build a JavaScript Memory Match Game - NO frameworks or libraries!!
45:16
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,7 МЛН
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 173 М.
Entire Game of Thrones Map/World Detailed
18:59
whycreate
Рет қаралды 5 МЛН
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 478 М.
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 108 МЛН