I cant seem to figure it out. This is what I have so far:
<head>
<script src="jquery-3.5.1.min.js"></script>
var gamerName
<script>
$(document).ready(function(){
gamerName = prompt("Please enter your name."," ");
});
</script>
</head>
Keep the
var
assignment inside the script tag! Otherwise it will be parsed as HTML.Minimal example;