Debug Mode: Code Generation

Welcome to Debug Mode, where your code is as wonky as your debugging skills.

Here are the code spoilers you requested:


// This is some code. Don't ask me what it does.
function makeITakeAChance() {
	var x = Math.random() * 10;
	return x;
}

// Or this one:
function generateRandomJargon() {
	var jargon = ["Blerp", "Flumplenook", "Wizzleplop"];
	return jargon[Math.floor(Math.random() * jargon.length)];
}

And if you're feeling extra fancy, try this:


// This is some advanced code. Don't ask me what it does.
function generateRandomJargonInASentence() {
	var jargon = ["Blerp", "Flumplenook", "Wizzleplop"];
	var sentence = "";
	for (var i = 0; i < 10; i++) {
		var randomJargon = jargon[Math.floor(Math.random() * jargon.length)];
		sentence += randomJargon + " ";
	}
	return sentence;
}

Or maybe you just want to see some random errors:


// This is some code that will probably crash your browser.
function error() {
	var x = 1 / 0;
	return x;
}

Or maybe you just want to generate some more jargon:

And if you're feeling extra fancy, try this:

But wait, there's more!