logo

India's First Software Developer Community

Variable in Javascript

Learn All Factors of Variable of Javascript

    1) Declaration of Variable
    2) Value Asign in Variable
    3) Display The Value of Variable   


<!DOCTYPE html>
<html>
<head>
<title> Variable in Javascript | W3CodeIndia </title>
</head>
<body>
<script type="text/javascript">
var firstname; // declaration of variable
firstname = "Tushar";        // value asign in variable
document.write(firstname);     // Display value of variable
document.write("<br>");
firstname = "Mirashe";        // Changing value of variable
document.write(firstname);
</script>
</body>
</html>




Subscribe Us :

Chapters :-


Advertisement