-
Notifications
You must be signed in to change notification settings - Fork 0
/
diplays.html
34 lines (33 loc) · 1.12 KB
/
diplays.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
<meta charset = "utf-8">
<title> this is about js </title>
</head>
<body>
<h1> This is about javascript </h1>
<p id = "demo"> hello ethiopians </p>
<p id = "demo2"> hello ethiopians </p>
<p id = "demo3"> hello ethiopians </p>
<script>
//document.getElementById('demo').innerHTML="this is the changed version";
//document.write("this is the changed version");
// window.alert(5+6);
//console.log(5+8);
var x,y,z
x=5
y=4
z=x+y
document.getElementById('demo').innerHTML = "the sum of the value is: " + z;
myfunction();
function myfunction(){
document.getElementById('demo2').innerHTML = "the sum of the value is: " + z;
document.getElementById('demo3').innerHTML = "the sum of the value is: " + z;
}
var x = "thiis is about \"ethio programmig\"";
var y = "this is about 'ethio programming'";
var z = 'this is about "ethio programming"';
document.getElementById('demo2').innerHTML = x + " " + y + " " + z;
</script>
</body>
</html>