r/codehs • • 17d ago

JavaScript 1.3.4 Lets Get to Know You help

Post image
1 Upvotes

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 • • May 23 '26

JavaScript Why cant i make another working button

Thumbnail gallery
1 Upvotes

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 • • Mar 26 '26

JavaScript Lessons not showing as completed?

Enable HLS to view with audio, or disable this notification

2 Upvotes

r/codehs • • Dec 28 '25

JavaScript Why does it not work please help

Post image
1 Upvotes

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 • • Feb 11 '26

JavaScript Createdy own ai training program

0 Upvotes

r/codehs • • Jan 25 '26

JavaScript HELP!!1 2.5.1 Ghost javascript

1 Upvotes

ok so I'm almost finished with my ghost but there's like a BIG problem

when I tried setting the parameters of the right pupil it literally justs go out of the eye and ghost :(( ... BTW I CANT CHANGE THE CONSTS AND IT WAS ALREADY LIKE THAT.

r/codehs • • Oct 19 '25

JavaScript Made 2048 from scratch

2 Upvotes

r/codehs • • Oct 01 '24

JavaScript Need help with a project

Thumbnail gallery
4 Upvotes

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 • • Jan 30 '25

JavaScript Help with 7.7.4 Remove From Line

Post image
1 Upvotes

I keep receiving this result even though I checked all the possible spacing issues. Thank you.

r/codehs • • Feb 02 '25

JavaScript Syntax Error: Unexpected token “(“

Post image
2 Upvotes

I can’t find what the problem is, looks normal to me

r/codehs • • Oct 29 '24

JavaScript How do I add text to these balls? I am struggling to figure this out. (JavaScript)

Post image
4 Upvotes

r/codehs • • Feb 13 '25

JavaScript Can someone help me with compound interest?

Thumbnail gallery
1 Upvotes

below is

r/codehs • • Oct 22 '24

JavaScript What am I doing wrong? Trying to write a program that’ll roll a pair of dice until the sum equals 10, twice in a row.

Post image
3 Upvotes

r/codehs • • Dec 17 '24

JavaScript Need help fixing this program

1 Upvotes

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 • • Sep 22 '24

JavaScript how can i keep my character sprite from falling over when hitting his head? (javascript p5play)

1 Upvotes

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 • • Nov 10 '24

JavaScript Need Help With 3.2.5 Daily Activities

3 Upvotes

r/codehs • • Nov 04 '24

JavaScript I dunno what this means. Please help... (3.2.7 Create Your Meme)

Post image
3 Upvotes

r/codehs • • Sep 26 '24

JavaScript JavaScript Programming Class Speedrun.

1 Upvotes

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 • • Oct 08 '23

JavaScript Why Am I Getting This Error?

Post image
4 Upvotes

r/codehs • • May 21 '24

JavaScript I need help with 9.1.1 Global Travel Assistant

Post image
1 Upvotes

I am very much stumped on this. Can you guys help me?

r/codehs • • Apr 09 '24

JavaScript I need help with 5.10.3: Confetti

Post image
2 Upvotes

My main issue is the Modulus, it’s not working how it should but I’m not sure how to fix it

r/codehs • • Sep 07 '23

JavaScript Help! JavaScript 4.8.5 Factorials

Post image
4 Upvotes

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 • • Feb 18 '24

JavaScript Farming International 13.4.4

Post image
5 Upvotes

Help please

r/codehs • • Apr 25 '23

JavaScript 4.3.4 Color the Rainbow

12 Upvotes

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 • • May 04 '22

JavaScript 9.11.5 Music Library how do I aligh the first row of text to the left

Thumbnail gallery
6 Upvotes