+ 5
Code playground's console.log cannot print '<' character?
Why does the program cannot print '<' on console.og? And the characters after '<' are disappear from console.log, and the next console.log message is concatenated with the first console.log message (no more line break). These console.log messages are working fine on browser console panel. https://code.sololearn.com/WejhbhnEUAC2
8 Antworten
+ 8
@Calvin I'm using mobile app version 1.3.3. Maybe a problem with desktop site C.Playground?
+ 7
Erm, the < symbol shows on the console log for me.
+ 7
On web browser the console object is bypassed by sololearn code playground and displayed as html content in the code playground page... so all things between '<' and '>' characters are interpreted as html tag ( and mostly ignored because almost not recognized tags )... you need to write '<' for outputting "lighter than" char in console :P
+ 7
You can suggest to Sololearn to make an update to the code playground page for escaping this character in their console treatment ;)
+ 2
@Hatsy are you using phone or PC? I use Pc Chrome. My phone SL still not upgraded, insufficient memory 😓
+ 2
I think so. Just like to confirm here.
+ 2
Thanks for reply again @visph.
It's a bit cumbersome if the console.log does not reply all the characters fully especially when testing program is coded for text generation.
+ 1
I just submitted a bug report to SL.