I want to know how to alert "Oops, looks like you didn't enter anything", if the user has entered "Enter your name". i have an if and and elseif but i don't know if else would work for it. Here is my code
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body style="background-color: silver">
<script>
var name=prompt("Enter your name", "Enter your name")
if (name !== '') {
alert("Welcome" + " " + name)
} else if(name !== false) {
prompt("Oops, looks like you didn't enter anything");
}
</script>
</body>
<html>