I thought I had my coding environment set up and ready to go. Now all of a sudden this happens:
var x = prompt(“Enter number of players:”);
console.log(x);
Result:
null
Any help?
I thought I had my coding environment set up and ready to go. Now all of a sudden this happens:
var x = prompt(“Enter number of players:”);
console.log(x);
Result:
null
Any help?
there is nothing wrong with your code.
try writing it in to a javascript and add the script to your html page.