diff --git a/.learn/vscode_queue.json b/.learn/vscode_queue.json new file mode 100644 index 0000000..f75b9fa --- /dev/null +++ b/.learn/vscode_queue.json @@ -0,0 +1 @@ +[{"name":"initializing","time":4581731.394},{"name":"configuration_loaded","time":4628160.923},{"name":"start_exercise","time":4624521.167,"data":"00-welcome"}] \ No newline at end of file diff --git a/app.js b/app.js new file mode 100644 index 0000000..84e73b8 --- /dev/null +++ b/app.js @@ -0,0 +1,35 @@ +// This is an excuse generator for the javascript prework course. + +let whotoblame = ["the dog", "my gramma", "the cat", "your mama"]; +let whattheydid = ["eat", "pissed", "crushed", "broke"]; +let whatdoyouwanttoavoid = [ + "my homework", + "the project", + "the model", + "the book", +]; +let when = [ + "before the class", + "right in time", + "when I finished", + "during my breakfast", + "during sleep", + "michi", +]; + +for (let i = 1; i < 9; i++) { + let domain = + i + + " " + + whotoblame[Math.floor(Math.random() * whotoblame.length + 0)] + + " " + + whattheydid[Math.floor(Math.random() * whattheydid.length + 0)] + + " " + + whatdoyouwanttoavoid[ + Math.floor(Math.random() * whatdoyouwanttoavoid.length + 0) + ] + + " " + + when[Math.floor(Math.random() * when.length + 0)]; + + console.log(domain); +}