help people i dont know whats wrong with this code
<html>
<head>
<title>Untitled</title>
<script type="text/javascript">
function confirmDelete()(
confirm ("Are you sure you want to delete? Please click on OK delete, or CANCEL to return.")
if (answer){
alert('YES');
} else {
alert('NO');
}
}
</script>
</head>
<body>
<a href="javsscript:confirmDelete();">test</a>
</body>
</html>
can u tell me whats wrong with this?
thank you in advance