Declare a variable in JavaScript

cc    Declare a variable is imortant thing in any language.
Here, we declare a variable with var Keyword in javascript.
<head runat=”server”>
<script language=”javascript” type=”text/javascript”>var  name;
name=”Meera Academy”;
document.write(name);
</script>
</head>                                             

                  

Leave a Reply

Your email address will not be published. Required fields are marked *

4 + 6 =


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">