I'm new to Javascript and need some help. Basically, I want the user to be able to enter their name into the input type box and when they press submit it should alert hello, then whatever the user's name is. The code already outputs the user's name as an alert but I don't know how to add the "hello" before the value. Please help, thanks.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<input type="text" id="t"></input>
<input type="submit" id="b"></input>
</body>
<script>
var t = document.getElementById("t");
document.getElementById("b").addEventListener("click", function() {
alert(t.value);
});
</script>
</html>