Code.org Lesson 4 Variables Make a Photo Liker App | Tutorial and Answers | CS Principles Unit 4

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 125

  • @weirdonique431
    @weirdonique431 4 роки тому +474

    You just earned yourself a subscriber because AP CPS is kicking my butt😭

    • @reaganmitchell8905
      @reaganmitchell8905 4 роки тому +8

      SAME

    • @JustMe-lw5rr
      @JustMe-lw5rr 4 роки тому +21

      Same I just spent an hour crying over this lesson 😭

    • @victormckenna9511
      @victormckenna9511 4 роки тому +8

      @@JustMe-lw5rr ayooo lmao. deadass took me like a week before i decided to look it up

    • @aliprettiest
      @aliprettiest 4 роки тому +7

      Brooo it’s difficult for me😭😭😭

    • @weirdonique431
      @weirdonique431 4 роки тому

      Lisha Neon FACTSSSS!

  • @esmeraldaduran7044
    @esmeraldaduran7044 4 роки тому +281

    Thank you so much I did this lesson in class today and I was really lost, this helped me!!

  • @thesaltyarcade5620
    @thesaltyarcade5620 4 роки тому +24

    My teacher just threw us this unit during winter break and expected us to learn everything without help. Thank you so much

  • @rosario2219
    @rosario2219 4 роки тому +3

    You are a great man, I love you. If your students don't like you, they are missing out.

  • @megantappin1087
    @megantappin1087 4 роки тому +70

    Thank you so much for this tutorial I was so lost!!

  • @catlondono5093
    @catlondono5093 4 роки тому +20

    I was struggling during this lesson, thank you so much! This video cleared a lot of things up for me.

  • @milk.inabag
    @milk.inabag 4 роки тому +5

    oh gosh i was having so much trouble in class seriously a life saver!!! thank you

  • @haleysimone
    @haleysimone 4 роки тому +1

    Thank you so much I was lost at first then I came to your video and followed every step !! Thank you again

  • @munano6930
    @munano6930 4 роки тому +3

    Bro this saved me so much time this is why I love the internet

  • @thiccienikki2503
    @thiccienikki2503 4 роки тому +8

    Oh my gosh thank you so much! I felt so lost in class

  • @serag3740
    @serag3740 4 роки тому +1

    thank you SO much, i was failing ap cs but maybe now I have a chance.

  • @KrisSardiProductions
    @KrisSardiProductions 4 роки тому +22

    Life saver! I was pretty confused but now I know, thanks alot👍

  • @danialarmin2385
    @danialarmin2385 4 роки тому +4

    God bless you for saving my grade

  • @harshasuresh4062
    @harshasuresh4062 4 роки тому +5

    Thank You!!! I was so confused, and this helps out a ton!!!

  • @perceptiongaming5212
    @perceptiongaming5212 4 роки тому +4

    You just made my day bro!!!!! Thanks so much!!

  • @ginag6316
    @ginag6316 4 роки тому +1

    Thank you sooo much!!! I didn’t know where to get started and this helped me sooo much

  • @andrewhicks7885
    @andrewhicks7885 4 роки тому +6

    What a legend! Thank you for the help!

  • @fiddledinks
    @fiddledinks 4 роки тому +3

    thank you so much i was stuck on this assignment for a while and this really helped!

  • @ToasterToucher
    @ToasterToucher 4 роки тому

    Thank you so much Ive been stuck for days you are a goat for this my guy!

  • @sabrinagarcia2644
    @sabrinagarcia2644 4 роки тому

    Omg thank you for this . I was just a mess in class . I was so lost but this help me so much !

  • @Fantasy44873
    @Fantasy44873 4 роки тому +1

    Thank you so much!!, now I understand how to do it.

  • @Jonaaaa
    @Jonaaaa 4 роки тому +4

    So amazingly clutch Thankyou so much my good sir 🙏

  • @sydwhite930
    @sydwhite930 4 роки тому +2

    You just saved me from a zero. Thank you!!

  • @lilliannamoreno3692
    @lilliannamoreno3692 4 роки тому

    sir thank you so much!!! i was so confused. i thought i would never understand this this but now i do!

  • @jacobjames4452
    @jacobjames4452 4 роки тому +1

    Great video explaining the topic!

  • @benhashtroodi3333
    @benhashtroodi3333 4 роки тому +1

    This man right here is a saint

  • @aparna4413
    @aparna4413 4 роки тому +1

    Thank you so much for posting this!! It helped out a lot!!

  • @bones_5481
    @bones_5481 4 роки тому

    Thanks man I'm now actually able to pass my assignment!

  • @jessica-xs7zb
    @jessica-xs7zb 4 роки тому +2

    Thank you so much for this video!!

  • @tahmidamim5843
    @tahmidamim5843 4 роки тому

    Thank you so much sir. I got stuck and you helped me a lot. PLease do these types of app projects more.

  • @ssg9offical
    @ssg9offical 4 роки тому

    You're straight up goated bro.

  • @caitlynoneil
    @caitlynoneil 4 роки тому +4

    thank you!!!! this was sooo helpful

  • @NoU-pf8fc
    @NoU-pf8fc 4 роки тому +9

    Bro you saved my freaking cheeks, I very much appreciate you😳

  • @serag3740
    @serag3740 4 роки тому

    if this works i just want you to know you literally just saved my grade.

  • @adogwithagun2393
    @adogwithagun2393 4 роки тому

    You are a literal saint thank you sir

  • @vxrzii9705
    @vxrzii9705 3 роки тому +1

    such a great tutorial ❤️

  • @laurencabrera6014
    @laurencabrera6014 4 роки тому +1

    THANK YOU SO MUCH YOU ARE THE BEST

  • @jasxn8639
    @jasxn8639 4 роки тому +3

    OMG thank you so much !!!

  • @ccutekitty7598
    @ccutekitty7598 4 роки тому

    Thank you so much, APCPS is killing me and this seriously helped omg

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +1

      It can be brutal, so much and all too fast. You're here and trying, bet you end up just fine. Make amazon 2😉

    • @ccutekitty7598
      @ccutekitty7598 4 роки тому

      @@KurtKaiserUS JENSKNSKSNSK, hopefully 😅 computers are definitely fun, but so confusing at the same time. Your videos definitely helped get past my assignments, I don’t know what I would’ve done without them 😅

  • @willuhlmeyer5860
    @willuhlmeyer5860 4 роки тому

    you are such a legend bro

  • @matthewgonzalez6244
    @matthewgonzalez6244 4 роки тому

    You are the biggest help sir

  • @dustin2867
    @dustin2867 4 роки тому +2

    During min 5:07 i have the same code as you but when I click run and press the like button the number doesn't go up, any ideas on what it could be? thanks!

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому

      Hmm, double check the variable likes, I kept putting like the first time. Also, do you know the button's id? Make sure the onEvent block is for the up button and the set text block has the id of the text area.

    • @dustin2867
      @dustin2867 4 роки тому

      @@KurtKaiserUS i got it to work! thanks!

  • @Ter0nto
    @Ter0nto 4 роки тому +1

    Thank you very much

  • @taylornaty5335
    @taylornaty5335 2 роки тому +1

    I like to think I am decent with coding. I understand what I’m doing and I’m able to explain what I am doing. I just can never retain all that I learn. 😭

  • @danielaarevalo8880
    @danielaarevalo8880 4 роки тому

    Thank you king 👑 😭

  • @fatboyy358
    @fatboyy358 4 роки тому

    You just saved my grade

  • @unknowngamer9566
    @unknowngamer9566 4 роки тому

    Your a life saver.

  • @256Noah
    @256Noah 4 роки тому

    THANK YOU SO MUCH GOAT

  • @rylieirving
    @rylieirving 4 роки тому +1

    Thank you!!

  • @haminkim8511
    @haminkim8511 4 роки тому

    thank you it really helped

  • @shahnawazsyed3722
    @shahnawazsyed3722 4 роки тому

    Thanks so much!

  • @Mystic-ms3cz
    @Mystic-ms3cz 4 роки тому +3

    What is the input and output of this app?

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +1

      In general, the input would be the message the user types in and clicks the submit button. Those words are "submitted" or inputted inthe the program. The output would be the response, the code responds by displaying those words in the text area. Or, for likes the input would be the click action, the response to that click is the like count increasing.

  • @w1l41
    @w1l41 4 роки тому

    so if i wanted to make a new variable for dislikes, how would i code that?

  • @vowsty9106
    @vowsty9106 4 роки тому

    For the add message what are the with height etc

  • @Bagel_Muncher0
    @Bagel_Muncher0 4 роки тому +1

    Literal lifesaver :)

  • @AJ-fg1sx
    @AJ-fg1sx 4 роки тому

    Thank you for the help I was so lost XD!

  • @dustinstocksdale7808
    @dustinstocksdale7808 4 роки тому +9

    Hey, I keep getting “Likes: NaN” for the like and dislike button, any ideas?

    • @molecularkinesis7311
      @molecularkinesis7311 4 роки тому

      @@ttwortoise what do u mean by that cuz i dont think that worked

    • @DaRealPanther17
      @DaRealPanther17 4 роки тому

      Do exactly what is shown in the video, It will work. Do not alter the looks of the block text in anyway

    • @KaZeGamingOnYT
      @KaZeGamingOnYT 4 роки тому +3

      it’s probably because you are using a variable block instead of an x=0 one

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +1

      NaN stands for not a number. A few things could be going on, did you declare your variable at the top of the program? If you declare the variable inside the onEvent function block other parts of the program will not be able to see or use it. Make sure when you are adding or subtracting numbers you do not put the variable name in quotes. This would make it a string, a word, and not a number variable anymore.

  • @parkerlongwell1997
    @parkerlongwell1997 4 роки тому

    Thank you

  • @jezelleanimaddo489
    @jezelleanimaddo489 4 роки тому

    woah thanks a lot :D

  • @mayaelana8399
    @mayaelana8399 4 роки тому

    Bruh I wish u were my computer science teacher😔

  • @haydenchristensen9278
    @haydenchristensen9278 4 роки тому

    thanks man

  • @ofrice7961
    @ofrice7961 2 роки тому

    thanks

  • @UrBoiPika
    @UrBoiPika 4 роки тому

    This ruined me, don't understand how they thought I would understand.
    Thanks so much for the explanation

  • @adansnell1015
    @adansnell1015 4 роки тому

    i have a bug where i can only only use the buttons if i am in show code

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому

      This happens often, try refreshing your entire screen, the refresh at the top of the browser, not the refresh and save in code .org's site.

  • @wixk54
    @wixk54 4 роки тому

    GOATED!!!!

  • @clement2042
    @clement2042 4 роки тому +3

    We all lost in class rn?😂

  • @bunza1296
    @bunza1296 4 роки тому

    I followed ur instructions but I kept getting NaN

  • @Miabeloved
    @Miabeloved 4 роки тому +1

    It doesnt work

    • @Miabeloved
      @Miabeloved 4 роки тому

      its saying comments isnt called on

    • @Alexaresnick19
      @Alexaresnick19 4 роки тому

      @@Miabeloved same it says I have not declared my variables yet my code looks exactly like his. Any tips?

    • @Miabeloved
      @Miabeloved 4 роки тому

      @@Alexaresnick19 just use an x=thing instead of var x=thing
      for me

  • @coeboyy
    @coeboyy 4 роки тому

    I have this exactly but get "NaN" when pressing like or dislike

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +1

      That is frustrating. NaN stands for not a number, is it possible that onEvent that the downButton is clicked you have the variable likes in quotes, likes = "likes" - 1? Somewhere there is an item the computer thinks should be a number but is a string, a word in quotes, instead.

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +1

      Also, double check your variable declaration. Did you create the variable at the top? If you create a variable inside an onEvent function block, the other onEvent function blocks cannot see it. This is referred to as being out of scope.

  • @jacksonlapsley422
    @jacksonlapsley422 4 роки тому +1

    I love you

  • @catekovacic2667
    @catekovacic2667 4 роки тому +1

    My dislike button keeps saying NaN but my like button works just fine. Do you know what my problem is?

    • @PeaceStandsxo
      @PeaceStandsxo 4 роки тому +6

      Make sure you're not creating new variables inside onEvent blocks. So if you have "var" anywhere inside an OnEvent block, get rid of "var"

    • @molecularkinesis7311
      @molecularkinesis7311 4 роки тому +2

      @@PeaceStandsxo your insane thx

    • @masonstorm2927
      @masonstorm2927 4 роки тому +1

      @@PeaceStandsxo Thx so much I was freaking out on why it wouldn't work.

    • @PeaceStandsxo
      @PeaceStandsxo 4 роки тому

      @@masonstorm2927 no problem!

    • @PeaceStandsxo
      @PeaceStandsxo 4 роки тому

      @@molecularkinesis7311 no problem

  • @Miabeloved
    @Miabeloved 4 роки тому +1

    i hate it becaue i follow it exatly and it shows Likes: NaN

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +1

      NaN stands for not a number. That likely has to with a variable not existing or not being a number. For instance, if you make a variable named like, make sure you do not put like in quotes. Or, if you named a variable likes, make sure you never write like instead. Take a second look at the variable name.

    • @Miabeloved
      @Miabeloved 4 роки тому

      @@KurtKaiserUS Thank you your guides are very informative and I was a bit frustrated. My problem was that is put var likes= instead of likes =

  • @laurabrantley1462
    @laurabrantley1462 4 роки тому +1

    Great...now my students just watch your video to complete their assignments and learn nothing. This is why kids can't problem solve....because someone is trying to make a buck posting all the answers on the UA-cam. Thanks....

    • @Justin-tj6mi
      @Justin-tj6mi 4 роки тому +6

      @Luca Sciabica OHHHH sheet you just ended her career

    • @yedidiyakebede2097
      @yedidiyakebede2097 4 роки тому +12

      no disrespect but he is just explaining how he got the answer and HOW to do it, he isint just giving kids the answer. He's HELPING:)

    • @aramish3037
      @aramish3037 4 роки тому +6

      KAREN alert

    • @varshaprasad5043
      @varshaprasad5043 4 роки тому +9

      i just know your students hate you :)

    • @tonyferro5403
      @tonyferro5403 4 роки тому +5

      lmaooo that’s too funny. ur so mad. these comments destroying u karen!

  • @doctorderp1867
    @doctorderp1867 4 роки тому

    Goat

  • @alnuaimi-5874
    @alnuaimi-5874 4 роки тому

    ily

  • @leyvafelix3907
    @leyvafelix3907 4 роки тому

    thank you so much!!! this really helped

  • @nouraalmemari6021
    @nouraalmemari6021 4 роки тому +1

    Thank you very much

  • @gavinbrezny5659
    @gavinbrezny5659 2 роки тому

    thank you

  • @samnavarro5025
    @samnavarro5025 4 роки тому +1

    I love you

  • @Yourgotoclips
    @Yourgotoclips 3 роки тому

    I love you