
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Check for Undefined Variable in JavaScript
On getting the result of the following, you can find whether a variable is ‘undefined’. If the result is “false”, it means the variable is undefined.
Here, the variable results in “True”
Example
Live Demo<html> <body> <script> var res = 10; if(res) { document.write("True"); } else { document.write("False"); } </script> </body> </html>
Advertisements