0
Modify the if condition to print "hello" and " world" both in the console..?
if(?){ console.log("hello") } else{ console.log("world") }
5 ответов
+ 5
The following prints hello world on separate lines:
if (console.log("hello")) {
console.log("hello");
}
else {
console.log("world");
}
+ 11
David Carroll
I did not find such a question in SL lessons?
+ 6
Wait... what? Is this from a SoloLearn lesson? What the heck kind of jacked up, pointless question is this?
+ 2
Josh Greig That is brilliant! 😄
0
Use the search bar, that will only print "hello" and not "world". The question says to print "hello" AND " world".
EDIT: This refers to an answer that "Use the search bar" later deleted.