My code isn’t working at all, help is much appreciated, I’m a noob sorry.
PS, sorry if this is in the wrong place
<!doctype html>
<title>Game</title>
<script>
function load_js()
var play = prompt('Do you want to play?')
if (play == No || play == no) {
function close_window() {
if (confirm("Close Window?")) {
close();
}
else if (confirm == false) {
load_js()
}
}
}
//above closes game if player says no
//now for null value
else if (play == null || play == '' ) {
alert ('Invalid input, please write yes or no')}
else if (play == yes'){
alert('hello')
</script>