Programming Code Center(PCC)
[JS]

(PCC)::[How-to-use-JavaScript-var-keyword]::[js]

File Name : index.html

<!DOCTYPE html>
<html>
<body>

<h2>JavaScript Variables</h2>

<p>Create a variable, assign a value to it, and display it:</p>

<p id="demo"></p>

<script>
var carName = "Volvo";
document.getElementById("demo").innerHTML = carName;
</script>

</body>
</html>

Output :

JavaScript Variables

Create a variable, assign a value to it, and display it: