Practice Javascript
Practice Javascript
DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<script>
document.getElementById("demo").innerHTML = 10.09;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<script>
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<script>
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<script>
let x, y, z;
x = 10;
y = 4;
z = x + y;
document.getElementById("demo").innerHTML = z;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<script>
let x;
x = 5;
document.getElementById("demo").innerHTML = x * 10;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<script>
let x;
x = 4;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<p id = "demo"> </p>
<script>
var x, y;
x = 10 + 8;
y = x * 5;
document.getElementById("demo").innerHTML = y;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<p id = "demo"> </p>
<script>
let x;
x = 18;
//x = x + 5;
/* x = (2 * x) + 4;
x = x / 5; */
document.getElementById("demo").innerHTML = x;
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> The value from the javascript script is given below: </h1>
<script>
document.getElementById("demo01").innerHTML = name;
document.getElementById("demo02").innerHTML = Name;
</script>
</body>
</html>