I am coding an AI. It's not working. The browser is saying: Uncaught ReferenceError: do is not defined.
var what = ["jokes", "cats", "news", "weather", "sport"];
function start() {
var do = what[Math.floor((Math.random() * what.length) + 1)];
}
start();
Document.write(do);