Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .learn/vscode_queue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"name":"initializing","time":4581731.394},{"name":"configuration_loaded","time":4628160.923},{"name":"start_exercise","time":4624521.167,"data":"00-welcome"}]
35 changes: 35 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -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);
}