Build Your Own Memory Card Game with HTML, CSS, and JavaScript - Beginner-Friendly Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 18

  • @Hotbirdwatcher
    @Hotbirdwatcher 3 หลายเดือนก่อน +1

    Ik vind het leuk dat je dit kan!

  • @misterbeastinurdu
    @misterbeastinurdu ปีที่แล้ว +1

    You are very Intelligent in coding and your channel has only 27 videos but still you'r near to monetize your channel......we are waiting for such amazing videos of you.......... please.....start it again...why you stop videos?

  • @mobat1005
    @mobat1005 10 หลายเดือนก่อน +1

    I can't get the images to load, i get a 404 error, why would this be?

  • @lauragchiarello
    @lauragchiarello 2 หลายเดือนก่อน

    the error is in the pasta "data" > "cards.json" - all the image are two points "..assets/cherry.png" . The right thing is just one point like ".assets/cherry.png" . Moreover, i try the comment " Index.js for the line' , there is an extra slash after card.image in the source code when there shouldn't be."

  • @pixxeltwitch
    @pixxeltwitch ปีที่แล้ว +1

    Hello! Thank you so much for this tutorial. When I download the source code, the images on the front of the card don't seem to appear for me and appear like a broken image. Do you have any recommendations on how to fix this? Thanks so much!

    • @pixxeltwitch
      @pixxeltwitch ปีที่แล้ว +1

      Never mind I actually had someone help figure it out. In Index.js for the line' , there is an extra slash after card.image in the source code when there shouldn't be. after removing it everything works great!

  • @Ayuu321
    @Ayuu321 ปีที่แล้ว +1

    How do u make the folders/files i do not know what they are called on the side of ur screen where all ur code is put in i do not know simply how to do that i just started.

  • @ayandeleoluwakamiye7030
    @ayandeleoluwakamiye7030 ปีที่แล้ว

    I need your help with the form validation you wrote an article on. I'm having issues with the parameter message. Is there a way I can reach you please ?

  • @sabrina9411
    @sabrina9411 ปีที่แล้ว +1

    I can't get the cards to appear. The console seems to tell me that the problem comes from:
    fetch("./data/cards.json")
    .then((res) => res.json())
    .then((data) => {
    cards = [...data, ...data];
    shuffleCards();
    generateCards();
    });
    Maybe it's the path in the fetch() that's spelled wrong. But I don't understand: it's really the same as you and with the same folders and the same files.
    Do you have an idea to help me? maybe something I could have forgotten and don't think about....

    • @JsAcademyOfficial
      @JsAcademyOfficial  ปีที่แล้ว +1

      Are you using live server? If not than that can be a problem because fetch will only work with hosted files. In this case you can install it from the vscode extension store.
      As a last resort you can leave the fetch and create a variable in javascript and assign the array that is on the json file to it.

    • @shiraorgad6203
      @shiraorgad6203 8 หลายเดือนก่อน

      הI have this problem too. Did you manage to fix it?

  • @evancoindreau9549
    @evancoindreau9549 10 หลายเดือนก่อน

    why are we creating a json file ?

  • @Hotbirdwatcher
    @Hotbirdwatcher 3 หลายเดือนก่อน

    Ik kan geen json bestand invoegen😢

  • @imr.rhompersi5670
    @imr.rhompersi5670 6 หลายเดือนก่อน

    Your code dosent work well images dont once you added it to github..........

    • @urbanpuma9136
      @urbanpuma9136 หลายเดือนก่อน

      The file path needs a / at the beginning

  • @thisissahaj
    @thisissahaj 5 หลายเดือนก่อน

    teaching way is not good