Variables tutorial in JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Variables JavaScript</title>
<script>
var z = "Hello World<br><br>";
var x = "Hello How are you ?<br><br>";
var y = 392.44;
z = "Wow, So beautiful<br><br>"; //Here value of z will override
document.write(z);
document.write(x);
document.write(y);
document.write("<br><br>");
var first_name = "This is the name of first_name variable<br><br>";
var firstName = "This is the camel case pattern variable<br><br>";
var firstName44 = "This is the camel case pattern containing numeric value<br><br>";
var first, second;
first = 67; //Assign value to variable after declaration
document.write(first_name);
document.write(firstName);
document.write(firstName44);
document.write(first);
document.write("<br>");
document.write(second);
</script>
</head>
<body>
<h1>Hello World</h1>
</body>
</html>
.png)
.png)
.png)
.png)
.png)
Comments
Post a Comment