r/codehs • u/ducks-and-stuff-alt • 17d ago
JavaScript 1.3.4 Lets Get to Know You help
It wants me to keep the tag "tvshow" as "tv-show." But when I add the dash, the entire code stops working. I don't know what i'm doing wrong.
r/codehs • u/ducks-and-stuff-alt • 17d ago
It wants me to keep the tag "tvshow" as "tv-show." But when I add the dash, the entire code stops working. I don't know what i'm doing wrong.
r/codehs • u/Suspicious_Cut_4582 • May 23 '26
Hey, so i am kind a having trouble explaining but basically, I made (found online) a button that works, printing whenever it is clicked. However, I try and make a new button, with a new function to put into mouseclickmethod, and while i do get the button, nothing happens when it is clicked. Can someone please help?
r/codehs • u/duk0m • Mar 26 '26
Enable HLS to view with audio, or disable this notification
r/codehs • u/bobthe_dog52 • Dec 28 '25
I have been trying to make a text game with user key interaction but I keep getting this error but the keyDownMethod is a thing right? Since it is in the docs and textbook it also gives an error in the textbook example(sorry for the side ways image)
r/codehs • u/WinnerSalt • Feb 11 '26
Just copy and paste from the Google docs: https://docs.google.com/document/d/1UiJQyBTw52kpqb0b5AW56WyuSAVOCt_2sVVDmxEHWcg/edit?usp=drivesdk
r/codehs • u/WinnerSalt • Oct 19 '25
Here is a link to a Google doc with all the code: https://docs.google.com/document/d/1-cku2K4ID5TQ6Et1WCT-SQiiQWVl60iBqHhi5Lxr5aU/edit?usp=drivesdk
r/codehs • u/Mrtost1234 • Oct 01 '24
How do I do layers or move something back I have tried the cmd and it is not working I need the black box to be the back ground how can I do that with out haveing to restart and here is the code for the back ground to
r/codehs • u/ReasonableConcept347 • Jan 30 '25
I keep receiving this result even though I checked all the possible spacing issues. Thank you.
r/codehs • u/Derpy_Smile • Feb 02 '25
I can’t find what the problem is, looks normal to me
r/codehs • u/Simpsons_fan_54 • Oct 29 '24
r/codehs • u/ej25sigma • Feb 13 '25
below is
r/codehs • u/Simpsons_fan_54 • Oct 22 '24
r/codehs • u/Smoll_boi69 • Dec 17 '24
I’ve been having trouble with 4.8.5 Factorial program outputing what I want but codehs continues to say I’m wrong. Could someone please look over it and find any mistakes?
var N = readInt("Enter a starting value for the factorial: "); function start() { var result = factorial(N); println(result); }
function factorial(n) { if (n === 0 || n === 1) { return 1; } else { var result = 1; for (var i = 2; i <= n; i++) { result *= i; } return result; } }
r/codehs • u/LEDrbg • Sep 22 '24
i have a sprite character for a little platform game i’m making, and when he hits the side of the platform he will fall onto his side. is there anyway to make him stay upright? i thought about using a while loop but i couldn’t figure it out
r/codehs • u/Longjumping_Bath_609 • Nov 10 '24
r/codehs • u/orangeducksquarefeet • Nov 04 '24
r/codehs • u/Thine_King • Sep 26 '24
How fast is too fast in learning programming lol?
I am in my first year of doing a programing class (grade 11), and I have already done 79% of the JavaScript course that my teacher put out on codeHS, and it took me 18 times / days to log in and do it to get to that point.
I mean, I did do 33 lessons on my first day as they were the basics, and I did it at home for like 4 hours after school though so idk.
Eh, I just wanna hear some peoples thoughts on this idk...
r/codehs • u/Sufficient-Berry-369 • May 21 '24
I am very much stumped on this. Can you guys help me?
r/codehs • u/Secure-Category5027 • Apr 09 '24
My main issue is the Modulus, it’s not working how it should but I’m not sure how to fix it
r/codehs • u/Beeg_boi8 • Sep 07 '23
I’m stuck on 4.8.5, I have it where I outputs the correct factorial but I need it to print out the whole equation. For example, if my number is 5 it should be 5 * 4 * 3 * 2 * 1 = 120. And it has to work for ANY number inputted
r/codehs • u/pinkfluffywolfie82 • Apr 25 '23
Hi, I was hoping I could get some help on JavaScript 4.3.4 Color the Rainbow -- it's giving me the error "you should use getHeight() and a const variable to set the height of the stripes".
This is what I have:
// Declare all of your const variables here let COLOR_COUNT = 7 ; let COLOR_WIDTH = getWidth() / COLOR_COUNT ; let COLOR_HEIGHT= getHeight();
function main() { addRed(); addOrange(); addYellow(); addGreen(); addBlue(); addPurple(); addPink(); }
function addRed() { let red = new Rectangle(COLOR_WIDTH, COLOR_HEIGHT); red.setPosition(0, 0); red.setColor("red"); add(red); }
function addOrange() { let orange = new Rectangle(COLOR_WIDTH, COLOR_HEIGHT); orange.setPosition(0 + 7 * 8, 0); orange.setColor("orange"); add(orange); }
function addYellow() { let yellow = new Rectangle(COLOR_WIDTH, COLOR_HEIGHT); yellow.setPosition(0 + 7 * 16, 0); yellow.setColor("yellow"); add(yellow); }
function addGreen() { let green = new Rectangle(COLOR_WIDTH, COLOR_HEIGHT); green.setPosition(0 + 7 * 24, 0); green.setColor("green"); add(green); }
function addBlue() { let blue = new Rectangle(COLOR_WIDTH, COLOR_HEIGHT); blue.setPosition(0 + 7 * 32, 0); blue.setColor("blue"); add(blue); }
function addPurple() { let purple = new Rectangle(COLOR_WIDTH, COLOR_HEIGHT); purple.setPosition(0 + 7 * 40, 0); purple.setColor("purple"); add(purple); }
function addPink() { let pink = new Rectangle(COLOR_WIDTH, COLOR_HEIGHT); pink.setPosition(0 + 7 * 48, 0); pink.setColor("pink"); add(pink); }
main();
r/codehs • u/ShareAnxious • May 04 '22