Can you get all 7 questions on The World's Easiest Test?
Lizzie126 (30)

I finally got the gif to work, and the test is complete. Have fun!
P.S. When you get to a f letter word question, make sure your awnser had a capital letter at the beginning.

You are viewing a single comment. View All
JadenGarcia (37)

@Lizzie126 So... I might have totally updated the code: https://repl.it/@JadenGarcia/The-Worlds-Easiest-Test.
You are using way too many ids though, you don't need to select everything with an id.

Lizzie126 (30)

@JadenGarcia It works!!
You are a genius. Thank you!

JadenGarcia (37)

@Lizzie126 Yw, it's a bit advanced though, if you're a beginner you might not understand all of it though.

Lizzie126 (30)

@JadenGarcia yeah, I am a little bit new to Javascript in HTML.

JadenGarcia (37)

@Lizzie126 While looking at the gifs you had I noticed both, "clap" and "fail" are unused, also the range should be able to be 1, allowing all images to be used. Right now 1 is skipped over entirely.

Lizzie126 (30)

@JadenGarcia i notice that too. But I need all 5 of the gifs for them to work, even if some of them are skipped.

JadenGarcia (37)

@Lizzie126 You have all 5, why can't you use them? I'm in the middle of redesigning the range system you built to show all gifs.

Lizzie126 (30)

@JadenGarcia That is my question, too. I am wondering why it can't use all 5. I don't know. It is very complicated.😫

JadenGarcia (37)

@Lizzie126 There are 5 images, [1 - 5]. Arrays start with an index of 0, so we would do [0-4], you already did this part. All we need is a way to access the contents of the image array, you already did that too, gif[range] range is being used as the index

So what do you need?

All we need is it to be possible for range to be any of the numbers 0-4, you almost have that, you just need an if statement that makes range = 1;, after you do that, it'll work.