@@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 😅
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!
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.
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. 😭
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.
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.
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.
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.
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.
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....
You just earned yourself a subscriber because AP CPS is kicking my butt😭
SAME
Same I just spent an hour crying over this lesson 😭
@@JustMe-lw5rr ayooo lmao. deadass took me like a week before i decided to look it up
Brooo it’s difficult for me😭😭😭
Lisha Neon FACTSSSS!
Thank you so much I did this lesson in class today and I was really lost, this helped me!!
Me too
My teacher just threw us this unit during winter break and expected us to learn everything without help. Thank you so much
You are a great man, I love you. If your students don't like you, they are missing out.
Thank you so much for this tutorial I was so lost!!
Glad I could help!
I was struggling during this lesson, thank you so much! This video cleared a lot of things up for me.
oh gosh i was having so much trouble in class seriously a life saver!!! thank you
Thank you so much I was lost at first then I came to your video and followed every step !! Thank you again
Bro this saved me so much time this is why I love the internet
Oh my gosh thank you so much! I felt so lost in class
thank you SO much, i was failing ap cs but maybe now I have a chance.
Life saver! I was pretty confused but now I know, thanks alot👍
God bless you for saving my grade
Thank You!!! I was so confused, and this helps out a ton!!!
You just made my day bro!!!!! Thanks so much!!
Thank you sooo much!!! I didn’t know where to get started and this helped me sooo much
What a legend! Thank you for the help!
thank you so much i was stuck on this assignment for a while and this really helped!
Thank you so much Ive been stuck for days you are a goat for this my guy!
Omg thank you for this . I was just a mess in class . I was so lost but this help me so much !
Thank you so much!!, now I understand how to do it.
So amazingly clutch Thankyou so much my good sir 🙏
You just saved me from a zero. Thank you!!
sir thank you so much!!! i was so confused. i thought i would never understand this this but now i do!
Great video explaining the topic!
This man right here is a saint
Thank you so much for posting this!! It helped out a lot!!
Thanks man I'm now actually able to pass my assignment!
Thank you so much for this video!!
Thank you so much sir. I got stuck and you helped me a lot. PLease do these types of app projects more.
You're straight up goated bro.
thank you!!!! this was sooo helpful
Bro you saved my freaking cheeks, I very much appreciate you😳
if this works i just want you to know you literally just saved my grade.
You are a literal saint thank you sir
such a great tutorial ❤️
THANK YOU SO MUCH YOU ARE THE BEST
OMG thank you so much !!!
Thank you so much, APCPS is killing me and this seriously helped omg
It can be brutal, so much and all too fast. You're here and trying, bet you end up just fine. Make amazon 2😉
@@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 😅
you are such a legend bro
You are the biggest help sir
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!
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.
@@KurtKaiserUS i got it to work! thanks!
Thank you very much
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. 😭
Thank you king 👑 😭
You just saved my grade
Your a life saver.
THANK YOU SO MUCH GOAT
Thank you!!
You're welcome!
thank you it really helped
Thanks so much!
What is the input and output of this app?
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.
so if i wanted to make a new variable for dislikes, how would i code that?
For the add message what are the with height etc
Literal lifesaver :)
Thank you for the help I was so lost XD!
Hey, I keep getting “Likes: NaN” for the like and dislike button, any ideas?
@@ttwortoise what do u mean by that cuz i dont think that worked
Do exactly what is shown in the video, It will work. Do not alter the looks of the block text in anyway
it’s probably because you are using a variable block instead of an x=0 one
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.
Thank you
woah thanks a lot :D
Bruh I wish u were my computer science teacher😔
thanks man
thanks
This ruined me, don't understand how they thought I would understand.
Thanks so much for the explanation
i have a bug where i can only only use the buttons if i am in show code
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.
GOATED!!!!
We all lost in class rn?😂
I followed ur instructions but I kept getting NaN
It doesnt work
its saying comments isnt called on
@@Miabeloved same it says I have not declared my variables yet my code looks exactly like his. Any tips?
@@Alexaresnick19 just use an x=thing instead of var x=thing
for me
I have this exactly but get "NaN" when pressing like or dislike
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.
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.
I love you
My dislike button keeps saying NaN but my like button works just fine. Do you know what my problem is?
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"
@@PeaceStandsxo your insane thx
@@PeaceStandsxo Thx so much I was freaking out on why it wouldn't work.
@@masonstorm2927 no problem!
@@molecularkinesis7311 no problem
i hate it becaue i follow it exatly and it shows Likes: NaN
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.
@@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 =
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....
@Luca Sciabica OHHHH sheet you just ended her career
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:)
KAREN alert
i just know your students hate you :)
lmaooo that’s too funny. ur so mad. these comments destroying u karen!
Goat
ily
thank you so much!!! this really helped
Thank you very much
thank you
I love you
I love you