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}`); + } + } + } + } +}