From 6b5b12676ff1a31f4fa375bde73b3b4b532cb6d2 Mon Sep 17 00:00:00 2001 From: Dante Fasano <145046049+dantefasano@users.noreply.github.com> Date: Thu, 16 Jan 2025 15:57:25 -0400 Subject: [PATCH] Initial commit Added line of code --- .learn/config.json | 9 +++++++++ app.js | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .learn/config.json create mode 100644 app.js diff --git a/.learn/config.json b/.learn/config.json new file mode 100644 index 000000000..afb0397cd --- /dev/null +++ b/.learn/config.json @@ -0,0 +1,9 @@ +{ + "config": { + "editor": { + "agent": "vscode" + }, + "autoPlay": false + }, + "currentExercise": null +} \ No newline at end of file diff --git a/app.js b/app.js new file mode 100644 index 000000000..6b798575f --- /dev/null +++ b/app.js @@ -0,0 +1,18 @@ +let pronoun = ['the', 'our']; +let adj = ['great', 'big']; +let noun = ['jogger', 'racoon', 'puedes']; +let extensions = ['.com', '.net', '.us', '.io', '.es']; + +for (let p of pronoun) { + for (let a of adj) { + for (let n of noun) { + for (let ext of extensions) { + if (n.endsWith(ext.substring(1))) { + console.log(`${p}${a}${n}`); + } else { + console.log(`${p}${a}${n}${ext}`); + } + } + } + } +}