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 (36)

Only 5 right, didn't use capital T or tuna and F for fire.

Lizzie126 (30)

@JadenGarcia ohh, ok. Well, I would still give you 7/7!😁
(JavaScript is case sensitive)

JadenGarcia (36)

@Lizzie126 Maybe you should math using regular expressions using the case-insensitive flag. /tuna/i.exec("UserInputWithCapitalTuna!").

I was literally working on JavaScript when you replied too! https://repl.it/@JadenGarcia/Memoization

Lizzie126 (30)

@JadenGarcia WOW!!!! that was alot of numbers. It made my head dizzy!😅

Lizzie126 (30)

@JadenGarcia where do i put it though?

Lizzie126 (30)

@JadenGarcia /tuna/i.exec("UserInputWithCapitalTuna!")

JadenGarcia (36)

@Lizzie126 That was an example, /tuna/i.test(YourStringHere), I believe you'd put that in your if statement, instead of val===val

Lizzie126 (30)

@JadenGarcia you won't belive it, but I just changed the Capital to lower, and it worked!
if (question4 == "Tuna")
if (question4 == "tuna")

JadenGarcia (36)

@Lizzie126 Now it won't accept the answer is you try a capital though, maybe use if(question4 === "Tuna" || question4 === "tuna")

Lizzie126 (30)

@JadenGarcia that did not work, either.

Lizzie126 (30)

@JadenGarcia I tried it not too long ago, it marked it wrong.

JadenGarcia (36)

@Lizzie126 I'll look at it and see how to make it work, I'll find a solution soon.

JadenGarcia (36)

@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.
Use this:
if(question4 === "Tuna" && question4 === "tuna")
This compares the value of question4 against both, "Tuna," and "tuna."