<script> // script open tag code here ... </script>// script closing tag
Rules and regulations to declare variables
1) No spaces in variable name.
2) We can begin with lowercase letters and later capitalized.
3) Should not use numbers before variable.
4) We can use underscore symbol to separate variable name eg:- variable_name.
Here if the condition fails ,else condition will execute and popup a message.
Thanks for reading this article .