<htmL>
3 - <head><title>Test JS</title>
4- ‹script>
5- function sayHello() {
return
"Hello World";
Q
>-
C

20px v
HTML
7
8
Let greeting = sayHello);
allps = document getElementsByTagName(" p")
10 for (i=0;i<allps.length;i++)
11- {
12
13
allps[i].innerHTML = greeting;
14
}
15
</ script>
I
16
</head>
17 - < body>
18
<h1>JavaScript Functions</h1>
19 ‹p>A function that returns the greeting: "Hello World":</p>
20
< id="demo"> demo</p>
21
< class="new">new</p>
22
</ body>
23
</html>