Code Rock Paper Scissors In JavaScript

Поделиться
HTML-код
  • Опубликовано: 30 янв 2025

Комментарии • 32

  • @HokageKyubiNaruto
    @HokageKyubiNaruto 2 года назад +2

    wow yours is so efficient; for the life of me I couldn't figure out how to do this

  • @BigBoucher22
    @BigBoucher22 2 года назад +4

    great content, very much appreciated by beginners

  • @sarialail
    @sarialail Год назад

    thank you so much I have exam today in javascript

  • @wilmakorch679
    @wilmakorch679 2 года назад +1

    Very helpful you are a life saver

  • @BurakVeBekir
    @BurakVeBekir 8 месяцев назад

    Thanks for your efforts

  • @Emmanuel-yz6ti
    @Emmanuel-yz6ti Год назад

    Please placing your script.js link under head is different from when you place it at the bottom?

  • @aditom02
    @aditom02 2 года назад

    good! keep it up💛💛

  • @amigm
    @amigm 2 года назад +2

    The "+= 1;" you can replace it with "++;"

  • @Coolio345
    @Coolio345 2 года назад +2

    Thanks for the concise and efficient tutorial!
    At 5:10, why are #opponent-choice and #your-choice centered, but #choices isn't?
    I think the body's "text-align: center;" is centering all the elements, but then shouldn't #choices also be centered by it since it's all in the body? Why did it need the "margin: 0 auto;" when the rest didn't?

    • @KennyYipCoding
      @KennyYipCoding  2 года назад

      Hi, it’s because choices is the id of a div tag while the other two, they’re img tags

  • @selva6797
    @selva6797 6 месяцев назад

    if i get image link from google, how to add in java script. could you tell me?

  • @S4NZZ.
    @S4NZZ. Год назад

    How to fix it when I move the file to my handphone? I shared it only showed up the number 0 (I need your answer)

  • @raylorraine4816
    @raylorraine4816 Год назад

    Can I do this on my Textpad?

  • @jayb2568
    @jayb2568 Год назад

    I'm having some trouble with the "function selectChoice" part. they just put blank images there. Any help?

    • @KennyYipCoding
      @KennyYipCoding  Год назад

      right click --> inspect, check the console see if theres any error message. Or you might've made a typo. You can also reference the code from the github link

    • @jayb2568
      @jayb2568 Год назад

      @@aleenajoseph3414 I personally couldn't fix it. No idea what the issue was..

    • @LEVHY-YT
      @LEVHY-YT Год назад

      ​@@KennyYipCodingI'm having the same issue currently 😢

    • @kornelszovati7874
      @kornelszovati7874 Год назад

      Hi, the solution is to keep everything the same and on the onload function change to choice.setAttribute('id', choices[i]);

  • @harunamin5606
    @harunamin5606 Год назад

    please build a website fully responsive with javascript thank you i subscribed you , your tutorial great

  • @CarlProgrammer
    @CarlProgrammer 2 года назад +1

    how do I upload this online?

  • @albasiempre5931
    @albasiempre5931 Год назад

    thru this video, I could clarify how and in which case I should use Math.random

  • @sayyedshoeib7107
    @sayyedshoeib7107 2 года назад

    how to find ho is winner after the player or computer point is 5,10 final result

  • @C.Med369
    @C.Med369 Год назад

    💙💙💙

  • @gengatuberofficial7009
    @gengatuberofficial7009 2 года назад

    what software you use for recording a screen?

  • @IamUkrainian
    @IamUkrainian 2 года назад +2

    two h1 tags on one page... bad practice

    • @KennyYipCoding
      @KennyYipCoding  2 года назад +4

      feel free to change the code however you like

    • @BulletPhase
      @BulletPhase 11 месяцев назад +1

      yeah cus your game deffo needs to be SEO optimised

    • @IamUkrainian
      @IamUkrainian 11 месяцев назад

      @@BulletPhase thnx your oppinion really matters

    • @BulletPhase
      @BulletPhase 11 месяцев назад

      @@IamUkrainian Same to you squirt

    • @BulletPhase
      @BulletPhase 11 месяцев назад

      @@IamUkrainian yours too squirt