Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

I saw this thread, but I didn't see a JavaScript specific example. Is there a simple string.Empty available in JavaScript, or is it just a case of checking for ""?

1 Answer

0 votes
by (106k points)
edited by

To check empty/undefined/null string in JavaScript you can use the below-mentioned way:-

if (strValue) { 

//do something 

}

Want to become a Web Developer, here are Web Development Courses for you! 

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...