Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Functions</h1> <p>This example shows the syntax of a function, without the use of arrow function syntax.</p> <p id="demo"></p> <script> let hello = ""; hello = function() { return "Hello World!"; } document.getElementById("demo").innerHTML = hello(); </script> </body> </html>