Javascript skontrolujte, či reťazec prázdny, alebo nula
Príklady kódu
17
0
javascript, ak je reťazec prázdny
// Test whether strValue is empty or is None
if (strValue) {
//do something
}
// Test wheter strValue is empty, but not None
if (strValue === "") {
//do something
}