9 lines
210 B
JavaScript
9 lines
210 B
JavaScript
> let x = "foo";
|
|
> let y = "";
|
|
> if (x.length === 0 && y.length === 0) {
|
|
"Both strings are empty!";
|
|
} else {
|
|
"At least one of the strings is nonempty.";
|
|
}
|
|
'At least one of the strings is nonempty.'
|