function js 1

function js

function myFunction(){
  document.write("Hello World!")
}
myFunction();

Here is what the above code is Doing:
1. We create a function called myFunction.
2. We call the function.
3. The function outputs “Hello World!”.

Similar Posts