InterviewSolution
Saved Bookmarks
| 1. |
How to find whether browser supports JavaScript or not |
|
Answer» The best way to CHECK if a variable exist in JavaScript is to verify it with null. The output: Variable do exist!Above, we worked on the condition that a variable exist if it is not null. Therefore we CHECKED the value if variable a like this: if(a != null) { document.write("Variable do exist!"); } |
|