output = document.getElementById('output');
function off() {
output.innerText = 'turning off';
wait(3000);
output.innerText = '/n off';
}
<!DOCTYPE html>
<html>
<head>
<script src="script.js"></script>
</head>
<body>
<button onclick="off()">press me to start</button>
<p id="output">Fun game</p>
</body>
</html>
I want it to show the texts in the output but nothing happens. Is there any solution for this problem?