Error in answer | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 3

Error in answer

answer must be false, but it returns true in challenge. Author Nemanja Stepanovich. var a = [10, 7, 14, 'foo']; var b = "10, 7, 14, foo"; console.log(a == b); // false

23rd Apr 2018, 6:18 AM
Vahe Ghevondyan
4 Respuestas
+ 2
Hey, in such cases I try to check in Code Playground first. So I did, and here's the code, which actually prints "false" as its output: https://code.sololearn.com/WTMMZ8M777eL/#html And it's totally okay, because those are two different arrays (doesn't matter that they contain the same values). See here: https://stackoverflow.com/questions/7837456/how-to-compare-arrays-in-javascript Summary: it's not an error, it works fine!
17th May 2018, 4:24 PM
Bryant
Bryant - avatar
+ 7
Vahe As the quiz challenges are picked at pseudo-random, we won't be able to find it. I leave your post as a warning for now. Kindly please enter the quiz and check for answers. When there, swipe to the wrong question and report it using the STOP sign button with an exclamation mark inside it, indicating the reason. Thanks in advance!
23rd Apr 2018, 6:23 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
You are to report any wrong quiz. Just tap on the button at the top-right on the 'correct answers' page.
23rd Apr 2018, 6:23 AM
Dev
Dev - avatar
0
բարեւ
21st May 2018, 5:12 AM
Rafael Forteza
Rafael Forteza - avatar