Awesome Vanilla JavaScript Memory Card Game Tutorial

  Рет қаралды 63,537

developedbyed

developedbyed

Күн бұрын

Пікірлер: 182
@AmAnKumAr-tg4fy
@AmAnKumAr-tg4fy 3 жыл бұрын
he is back after so many days and my left ear enjoyed this video
@webdevelopmentandprogrammi2555
@webdevelopmentandprogrammi2555 3 жыл бұрын
can relate lol
@yousufsulaiman2211
@yousufsulaiman2211 3 жыл бұрын
HHHH mine the same!
@mitalikodkani7749
@mitalikodkani7749 3 жыл бұрын
same here
@yixuanwang860
@yixuanwang860 3 жыл бұрын
somehow weirdly watching on phone not full - screen the sound is all normal
@AmAnKumAr-tg4fy
@AmAnKumAr-tg4fy 3 жыл бұрын
@@yixuanwang860 need to call susan
@SackSean
@SackSean 3 жыл бұрын
Had a lot of fun following along. Would recommend to have a settimeout before checking for a win/loss just so you can see the final card flip.
@sophiabrown8573
@sophiabrown8573 3 жыл бұрын
thanks i missed that
@mdrezaulkarim4707
@mdrezaulkarim4707 3 жыл бұрын
Love you Dev Ed for your vanilla js project
@errafai
@errafai 3 жыл бұрын
My left ear really enjoyed this video 😂 nice video nonetheless!
@tks4
@tks4 3 жыл бұрын
Turn on mono audio , next time and do justice to your right ear, .. unknown
@RickBeacham
@RickBeacham 3 жыл бұрын
haha!
@veronicaorozco3928
@veronicaorozco3928 Жыл бұрын
Thank you for sharing your expertise and helping others. I learned a lot from this tutorial and it helped me in creating my memory card game, as well as learning about pointer events and with my javascript logic. Thank you for helping me along my journey!
@liningset6827
@liningset6827 3 жыл бұрын
We could actually do one other thing when the game restarts. Maybe add a settimeout of 1 second to show all the cards before flipping them backwards, bc otherwise the player wouldn't get a general glimpse of where the cards are and they'd have to guess it cluelessly. Great tutorial Ed thanks a bunch
@filipstanic4543
@filipstanic4543 3 жыл бұрын
We love you Ed, you are the lotus in our life swamp!
@paolocammardella6059
@paolocammardella6059 3 жыл бұрын
That vscode theme is lit!
@aqibmalik6313
@aqibmalik6313 Жыл бұрын
I watch ur and ur friend kyle videos so enthusiasticly. Im sure after watching the video im going to learn something. Love u both❤❤❤❤
@ouriel91
@ouriel91 2 жыл бұрын
Hi Ed, thanks for tutorial. I used in window.location.reload() instead of restart function, it's static game and we not keep data anywhere so we don't need to cleanup data, if we reload the page anything reloaded again. if the game was build as unstatic game we should do the cleanup, but i must to say that function is best practice. thank again on the tutorial.
@CartmanMthrFckr
@CartmanMthrFckr 3 жыл бұрын
Are you already planning new courses? I'm in the middle of your React course and just love it!
@nikitasharma5647
@nikitasharma5647 3 жыл бұрын
Hey Ed! You are a gem! Would love to learn a course on Angular from you.
@lukesunches5778
@lukesunches5778 3 жыл бұрын
It’s so nice to see you again, my teacher:)
@SeemaYadav-is4pw
@SeemaYadav-is4pw 3 жыл бұрын
I was waiting for a game like this
@mohammedshibani4777
@mohammedshibani4777 2 жыл бұрын
my left ear enjoyed this video a lot, thanks Dev Ed!!!
@rockNbrain
@rockNbrain 3 жыл бұрын
Great job ... JS is such a powerful language!
@rachelmcdermott4478
@rachelmcdermott4478 2 жыл бұрын
So easy to follow and understand thank you. It's also answered few questions in a completely different project that I'm doing!
@drishtisaraf8357
@drishtisaraf8357 2 жыл бұрын
I was having some trouble with the restart function. I tried finding the code on github but it's not there. Can you help me?
@fares.abuali
@fares.abuali 3 жыл бұрын
Thanks Ed. Your videos are priceless
@fortunembulazi
@fortunembulazi 3 жыл бұрын
Welcome back bro, we missed you.
@AlbiYouT
@AlbiYouT 3 жыл бұрын
Welcome back my friend! Vacations well deserved.
@KristianPedersen
@KristianPedersen 3 жыл бұрын
In VS Code, you can get the HTML in the beginning by typing ! and pressing Enter.
@jndyln
@jndyln 3 жыл бұрын
Glad to see you're doing well
@damnatioodiosis5537
@damnatioodiosis5537 3 жыл бұрын
The king is Back!
@marcod.643
@marcod.643 3 жыл бұрын
Welcome back, you were missed!
@cubingwithabhinav8517
@cubingwithabhinav8517 3 жыл бұрын
Please make a javascript full course.
@jonathonkiner7415
@jonathonkiner7415 2 жыл бұрын
Educational and fun tutorial! Thanks a lot Simo!
@aogunnaike
@aogunnaike 3 жыл бұрын
Where have you been bro? Glad you're ok.. good to see you again
@Xsyiaris
@Xsyiaris 3 жыл бұрын
Hey, why is the audio panned to left ear only? Thanks for the tutorial!
@mardabanamujiho
@mardabanamujiho 2 жыл бұрын
thank you, i finally make it happen.
@karthikm.1804
@karthikm.1804 2 жыл бұрын
Bring more creative game like this one
@brucealamin175
@brucealamin175 3 жыл бұрын
where the F have you been man.. missed your videos so much.
@ДмитрийРоманенко-ц7щ
@ДмитрийРоманенко-ц7щ 3 жыл бұрын
Good job
@Chris-yq1fw
@Chris-yq1fw Жыл бұрын
I thought my right speaker was broken :D anyway, great content !
@amaljoseak
@amaljoseak 3 жыл бұрын
King is back 🔥🔥🔥😍😍😍
@ijajulislam7223
@ijajulislam7223 3 жыл бұрын
after long time ! isshhh! thanks for come back sir... sir highly request to you to give us awesome react project like e-commerce or other one from scratch to complete
@christianh.1160
@christianh.1160 3 жыл бұрын
Welcome back
@dilshadalipk
@dilshadalipk 3 жыл бұрын
I like your way of teaching. God Bless You Dear
@h.nazmulhassanrakib5058
@h.nazmulhassanrakib5058 3 жыл бұрын
From Bangladesh. Love your youtube content
@ashish_prajapati_tr
@ashish_prajapati_tr 3 жыл бұрын
alright amazing magician is back.😄😄
@HlobileMakukule
@HlobileMakukule 9 ай бұрын
This was super cool 👍🏽
@hassaneoutouaya
@hassaneoutouaya 3 жыл бұрын
Thank you so much for the tutorial !
@SvetaSveta-ms4hi
@SvetaSveta-ms4hi 3 жыл бұрын
I absolutely loved it! 😍
@Asdzxc120
@Asdzxc120 3 жыл бұрын
i suggest you create a content about dragging things inside the web
@vedantthombare1028
@vedantthombare1028 3 жыл бұрын
YEAH ED BOI BACK!!!!!
@prsmahajan
@prsmahajan 3 жыл бұрын
Dev Ed is the best!
@madmad6915
@madmad6915 3 жыл бұрын
its alive!
@whiteseal5775
@whiteseal5775 3 жыл бұрын
BIG WELCOME
@huxnwebdev
@huxnwebdev 3 жыл бұрын
Welcome back buddy :)
@youyogesh85
@youyogesh85 3 жыл бұрын
no need to select all the card. just add card.setAttribute('name', item.name) within the for loop
@danisob3633
@danisob3633 3 жыл бұрын
ye, he realises
@uimonk
@uimonk 3 жыл бұрын
Please make more Javascript game video
@fadhilh3931
@fadhilh3931 3 жыл бұрын
Where have you been? I miss the content
@nage7447
@nage7447 3 жыл бұрын
let me do some code review here 6:45 it is realy bad idia to put 2 sets of data in one array like that, it would be better to keep just one copy and later do something like - const cartData = [...getData(), ...getData()]; 9:42 randomize function looks like somthing generyc and would be usefull to pass a list as parametr and return new randomized list. 43:16 some reactivity tip, so you can create `player` as an proxy and inside getter for `live` property you can add logic for updating ui, it can save if you forget to add that update ui line. 51:11 it is better to deley whole forEach instead of each item, in that way you can delay setting players live as well and get less timeout events (it is not some thing that can impact performance at that little app but still) 54:37 better to not hartcode `16` here, just select all cards or pass it as parameter. Code not so cleen but I know why, just to keep it siple, but that 5 things I would change :)
@sylim5636
@sylim5636 2 жыл бұрын
hi, can I know 6:45 in detail? I don't want to put 2 sets of data in one array but I don't know how to do that
@nage7447
@nage7447 2 жыл бұрын
@@sylim5636 sure, lets start with the problem, so it is not good to set up 2 identical data because when you desided chande initial data you have to change it in 2 places. Easiest way to handle that is ceep just one set of data in getData method and call it 2 times on init
@Shirois
@Shirois 3 жыл бұрын
No sound on video
@sparkyUK
@sparkyUK 3 жыл бұрын
Sat here with just the right-headphone in my ear thinking Ed had forgotten to turn on his mic! D'oh.
@slowprogrammer
@slowprogrammer 3 жыл бұрын
Yooo 🔥🔥🔥Dev ed is back 🔥🔥🔥🔥
@kudacuki074
@kudacuki074 3 жыл бұрын
"Sort is use to sort everything out" lol nice answer tho AHAHAHAH
@vijaysurwadkar2027
@vijaysurwadkar2027 3 жыл бұрын
Can you make more projects I love your videos
@emircs2442
@emircs2442 3 жыл бұрын
Yo yo yo yo yo my teacher how are you Today is Teqcher's day in Uzbekistan. Congrats! ☺🥳🥳🥳🥳🥳🥳🥳
@tabdig
@tabdig 3 жыл бұрын
welcome back! 🔥🤗🌟🎉
@lewisnt_
@lewisnt_ 3 жыл бұрын
your mic audio only comes through my left ear on my headset i thought i should let you know lmao
@a.anvarbekov
@a.anvarbekov 3 жыл бұрын
Hasn't been long to see him?
@sblantenmoorgamer1428
@sblantenmoorgamer1428 3 жыл бұрын
Gorgeous
@randeepyasintha140
@randeepyasintha140 3 жыл бұрын
I missed the only person who calls me gorgeous. :(
@Zuthilios
@Zuthilios 2 жыл бұрын
I've been trying to follow this tutorial but have a serious problem, when using the querySelector to add the cards to the node list, it goes to 2 but then keeps going 3, 4, 5, 6.. so the checkCards function only happens 1 time on the first two cards. How do I clear the node list?
@jonathonkiner7415
@jonathonkiner7415 2 жыл бұрын
He fixes it by remove the class inside of the if/else statement.
@datait72
@datait72 3 жыл бұрын
Hey Can you do a video how to make programming about cut list. That can help to find best way to cut wood
@RAJMOHAN-od7fi
@RAJMOHAN-od7fi 3 жыл бұрын
Please make video to easily create Faceted Navigation using javascript
@sayeghjoe
@sayeghjoe 2 жыл бұрын
I've updated this and made a demo. Can I post the URL here?
@h.nazmulhassanrakib5058
@h.nazmulhassanrakib5058 3 жыл бұрын
Long time letter has seen you again on youtube. Thanks for the awesome video. But sir No audio in this video
@cilvyah8083
@cilvyah8083 2 жыл бұрын
why are we doing the - 0.5 in the math.random(). I don't get that
@juiceboxh3ro
@juiceboxh3ro 2 жыл бұрын
it's because of the way Array.sort() works: it sorts each element based on positive and negative numbers, so the -0.5 shifts the return value of Math.random() into between roughly -0.5 and 0.5
@avneet12284
@avneet12284 3 жыл бұрын
is there a github link? Nice video
@nemanjamijic2332
@nemanjamijic2332 3 жыл бұрын
Not sure if I'm doing something wrong but code from Github doesn't work for me ( running on windows 10). Life counter is not showing and cards aren't resetting after wrong choice.
@NightChanTr
@NightChanTr 2 жыл бұрын
same
@HriCode
@HriCode 3 жыл бұрын
well , right too
@VladimirHoncharuk
@VladimirHoncharuk 3 жыл бұрын
Hello from Ukraine, programmer bro) Thanks for wonderful content
@maxim8825
@maxim8825 3 жыл бұрын
Which programmer exactly?
@pazzazzo
@pazzazzo 3 жыл бұрын
Hi, what is your vsc theme please?
@unknownman5296
@unknownman5296 2 жыл бұрын
yo what's the theme that you're using ?
@Nodsaibot
@Nodsaibot Жыл бұрын
why createElement when you can just append the whole Inner HTML??
@motivation4life430
@motivation4life430 2 жыл бұрын
my left ear enjoyed this video
@sreeharikrishnan4823
@sreeharikrishnan4823 3 жыл бұрын
There is no audio mate! 🤔
@ayaan3429
@ayaan3429 3 жыл бұрын
What theme is this?
@susandjones
@susandjones Жыл бұрын
It looks the same (or very similar to) the one I'm using, which is the default from the Community Material Theme extension. I love it.
@mayankrockss
@mayankrockss 2 жыл бұрын
When did you switch to apple? 😀
@englishtogether6506
@englishtogether6506 2 жыл бұрын
Hello! Could you guys guide me to find the source code?
@suelingsusu1339
@suelingsusu1339 3 жыл бұрын
Did anyone notice major image glitching when running on iPhone/iPad in either Safari and/or Chrome???
@sayeghjoe
@sayeghjoe 2 жыл бұрын
When I've got some time spare I'll rewrite some of this to make it Safari friendly
@ilyasax
@ilyasax Жыл бұрын
use backface-visibility: hidden; for .face and .back
@zackultimate1067
@zackultimate1067 3 жыл бұрын
Hey you still making magic tricks !! Iam about to make a fourtune
@Millionairelifestyle124
@Millionairelifestyle124 3 жыл бұрын
Where are you from bro?
@reemkhider3589
@reemkhider3589 Жыл бұрын
Hello Sir, thank you for your great video tutorial about implementing a vanilla JavaScript memory game, it was very useful for me. I followed along and it worked locally but when I tried to fetch photos dynamically from a database I had some issues and it didn't work. I would be grateful if you have some tips and advices to help in this issue
@jswarrior_
@jswarrior_ 3 жыл бұрын
WHICH THEME IS THIS ?
@divdevzach1400
@divdevzach1400 3 жыл бұрын
does he have the images to download somewhere?
@HHanna-sx9bn
@HHanna-sx9bn 2 жыл бұрын
how find the full code of this video
@codedbychavez8190
@codedbychavez8190 3 жыл бұрын
Ed, What model of Mac are you using? love this!!
@mahdifalahati4181
@mahdifalahati4181 3 жыл бұрын
that piece of microphone is nervous
@backspace1102
@backspace1102 2 жыл бұрын
how to make this responsive?
@RAJMOHAN-od7fi
@RAJMOHAN-od7fi 3 жыл бұрын
Hi can you create a video to make Faceted Navigation?
@breadpitt7557
@breadpitt7557 Жыл бұрын
Can someone help me make this responsive? I'm trying but none of the properties I'm using is shrinking it for mobile. THank you!
@ilyasax
@ilyasax Жыл бұрын
You can change grid template parameters for columns and rows from 8rem to 4rem for @media (max-width: 600px)
@zehsofficial
@zehsofficial 3 жыл бұрын
What are your PC specs?
@udaykreddy5248
@udaykreddy5248 2 жыл бұрын
source code ?
@marekkabala5349
@marekkabala5349 3 жыл бұрын
He is back, with Mac 😄🤟
@rafiyakhan
@rafiyakhan 3 жыл бұрын
Using a lot of questions tags
@santanu29
@santanu29 3 жыл бұрын
Audio only on the left
@Ant-jh3tn
@Ant-jh3tn 3 жыл бұрын
My comment will be irrelevant, however I have an issue here. Has anyone purchased one of his courses? I did HTML and CSS . Ed removed it without notifying me first, no obvious reason! It clearly says you will have access to your courses for life. He doesn't respond too.
@arnald7
@arnald7 3 жыл бұрын
Sound
Cool Title Animation with JavaScript Tutorial
36:24
developedbyed
Рет қаралды 44 М.
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,7 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 56 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 3,2 МЛН
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 15 МЛН
Memory Card Game - JavaScript Tutorial
34:16
freeCodeCamp.org
Рет қаралды 179 М.
Learn the JavaScript DOM With This Project - Memory Game
29:07
Javascript Animations For Beginners
1:01:13
developedbyed
Рет қаралды 144 М.
Beginner Vanilla Javascript Project Tutorial
1:15:19
developedbyed
Рет қаралды 904 М.
5 Tips and Tricks To Make Your Life With Next js 14 Easier
17:11
developedbyed
Рет қаралды 43 М.
How to Code a Card Matching Game
39:59
Web Dev Simplified
Рет қаралды 146 М.
HTMX + GO 15 Minute Quickstart (For Javascript Devs)
16:59
developedbyed
Рет қаралды 27 М.
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,7 МЛН