<html>
<head>
</head>
<body>
<script>
function wow(){
alert(1);
}
wow();
function wow(){
alert(2);
}
wow();
</script>
</body>
</html>
This is my code, I expect it will alert 1 and 2 but instead, it alerted 2 and then 2 again, why????