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

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.4k questions

32.5k answers

500 comments

108k users

Browse Categories

...