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.
Dats not easy.
“The answer” (Remember when you said “answer” and I said “add the most common English word”? “The” is the most common English word!)@Lizzie126
There are 5 houses in five different colors.
In each house lives a person with a different nationality.
These five owners drink a certain type of beverage, smoke a certain brand of cigar and keep a certain pet.
No owners have the same pet, smoke the same brand of cigar or drink the same beverage.
the Brit lives in the red house
the Swede keeps dogs as pets
the Dane drinks tea
the green house is on the left of the white house
the green house's owner drinks coffee
the person who smokes Pall Mall rears birds
the owner of the yellow house smokes Dunhill
the man living in the center house drinks milk
the Norwegian lives in the first house
the man who smokes blends lives next to the one who keeps cats
the man who keeps horses lives next to the man who smokes Dunhill
the owner who smokes BlueMaster drinks beer
the German smokes Prince
the Norwegian lives next to the blue house
the man who smokes blend has a neighbor who drinks water
Who owns the fish?
Einstein wrote this riddle. He said that 98% of the world could not solve it.
@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
@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.
@Lizzie126 Found your problem: you used
if(question4 === "Tuna"&&"tuna"), this evaluates the
===, so, if this is false, then the
if statement evaluates to
false, if it is true, then it looks at the logical "and,"
&& and the if statement evaluates to "tuna", that is not what you want at all.
if(question4 === "Tuna" && question4 === "tuna")
This compares the value of
question4 against both, "Tuna," and "tuna."