undefined in JavaScript

<script language="JavaScript1.3">
    <!--
    var myVariable;

    if(myVariable == undefined){
      document.write("This variable is undefined at the moment");
    }else{
      document.write("This variables value is: " + myVariable);
    }
    -->
    </script>