diff --git a/.learn/vscode_queue.json b/.learn/vscode_queue.json new file mode 100644 index 0000000..70fafb0 --- /dev/null +++ b/.learn/vscode_queue.json @@ -0,0 +1 @@ +[{"name":"initializing","time":3295799.122},{"name":"reset","time":3295833.506},{"name":"configuration_loaded","time":3301796.973},{"name":"start_exercise","time":3323127.58,"data":"00-welcome"},{"name":"start_exercise","time":3910859.008,"data":"01-first-app"},{"name":"start_exercise","time":3887281.973,"data":"00-welcome"}] \ No newline at end of file diff --git a/app.js b/app.js new file mode 100644 index 0000000..dda04ff --- /dev/null +++ b/app.js @@ -0,0 +1,19 @@ +// JavaScript file +function generateExcuse() { + let who = ['the dog', 'my grandma', 'his turtle', 'my bird']; + let what = ['ate', 'pissed on', 'crushed', 'broke']; + let when = ['before the class', 'right in time', 'when I finished', 'during my lunch', 'while I was praying']; + + // Generate a random index for each list + let whoIndex = Math.floor(Math.random() * who.length); + let whatIndex = Math.floor(Math.random() * what.length); + let whenIndex = Math.floor(Math.random() * when.length); + + // Concatenate the elements to form the excuse + let excuse = `${who[whoIndex]} ${what[whatIndex]} ${when[whenIndex]}`; + return excuse; +} + +// Print excuse +console.log(generateExcuse()); + diff --git a/app.py b/app.py new file mode 100644 index 0000000..8734988 --- /dev/null +++ b/app.py @@ -0,0 +1,3 @@ +# Python file +excuse = "The dog ate my homework when I finished" +print(excuse)