diff --git a/src/app.js b/src/app.js
index f129d1c9e..c7653413a 100644
--- a/src/app.js
+++ b/src/app.js
@@ -6,6 +6,30 @@ import "./assets/img/rigo-baby.jpg";
import "./assets/img/4geeks.ico";
window.onload = function() {
- //write your code here
- console.log("Hello Rigo from the console!");
+ let a = ["el", "nuestro"];
+ let b = ["Gran", "Mejor", "Pequeño"];
+ let c = ["Lebowsky", "Isra"];
+ let d = [".es", ".com", ".net", ".tv", ".io"];
+
+ function generarDominios(a, b, c) {
+ let dominios = [];
+
+ for (let i of a) {
+ for (let j of b) {
+ for (let k of c) {
+ for (let l of d) {
+ let dominio = i + j + k + l;
+ dominios.push(dominio);
+ }
+ }
+ }
+ }
+
+ return dominios;
+ }
+
+ let combinaciones = generarDominios(a, b, c);
+ combinaciones.forEach(dominio => console.log(dominio));
+
+ document.getElementById("domainNames").innerHTML = combinaciones.join("
");
};
diff --git a/src/index.html b/src/index.html
index e275741cf..968404739 100644
--- a/src/index.html
+++ b/src/index.html
@@ -14,16 +14,12 @@
+
If this text is not centered and yellow, you probably have an error
-