function PicClick(){
alert('You clicked the picture!');
}
Now click the picture, and you should get an alert at the top of your screen
function sayHi() {
var name = document.getElementById('name').value;
alert('hello ' + name);
}
Enter a name and click the button. You should get an alert at the top of your screen