+ 1

Can someone please help me fix the error in this code?

I'm trying to create a program to get the reverse version of the word enter and compare it whether it is the same if it is the same it should output "the word you enter is a palindrome" if not it should output "the word you enter is not a palindrome". https://code.sololearn.com/WjD7H0bYf2Zw/?ref=app

18th May 2021, 11:39 AM
Maxwell D. Dorliea
Maxwell D. Dorliea - avatar
7 Antworten
+ 3
Maxwell, Your code doesn't write anything into JS console. What did you mean by "not leaving the console"?
18th May 2021, 1:48 PM
Ipang
+ 2
Ipang Maxwell has changed their code. The message was logged in the console before.
18th May 2021, 1:55 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
Use value rather than toString(). document.getElementById("wd").value.toUpperCase();
18th May 2021, 12:08 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
Thanks alot
18th May 2021, 12:11 PM
Maxwell D. Dorliea
Maxwell D. Dorliea - avatar
+ 1
But the previous result is not leaving the console!
18th May 2021, 12:11 PM
Maxwell D. Dorliea
Maxwell D. Dorliea - avatar
18th May 2021, 12:22 PM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
CarrieForle I've always assumed the console displayed in Web Code Bits was just a simulated one to display the items captured when calling console.log(...). I suspect this similated version appends each log entry into the DOM rather than some output stream tied to a browser console. Unless explicitly implemented and handled by the SL App, it's highly unlikely most console APIs will work. For those that appear to work, it's most likely a fake variant reflected in the DOM rather than an actual console writing to an output stream.
23rd May 2021, 4:54 PM
David Carroll
David Carroll - avatar