Hello World - Java Script - 3rd Page

non-track-course
code-year

#1

Html

<head>
    <script type="text/javascript" src="script.js"></script>
</head>

<body>
    <button onclick="sayHello('world')">Click Me</button>
</body>

script.js
function sayhello(world) {
alert('Hello' + World!);
}


#2

in the alert you need to put your argument world
then you call your function with the word you want to set for the argument world

function sayhello(world) {
alert('Hello' + world);
}
sayhello("World!")

#3

URL to exercise: https://www.codecademy.com/en/courses/html-javascript-css/0/3