How to check if a string is empty in Javascript?
Question
How to check if a string is empty?
Answer
By using if
statement to check.
1 | if (strValue) { |
it will only run if strValue
is not empty.
Reference
This is the end of post
How to check if a string is empty?
By using if
statement to check.
1 | if (strValue) { |
it will only run if strValue
is not empty.
This is the end of post