How to check an empty string in Javascript 2017-12-16 Contents Question:Answer:Reference Question:How to check an empty string in an if-else statement? Answer:123if (strValue) { //do something} Your code will run only if strValue has value. Reference How do you check for an empty string in JavaScript? This is the end of post