diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2ba986f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/ejercicios.js b/ejercicios.js index a3ded7f..9dd7e24 100644 --- a/ejercicios.js +++ b/ejercicios.js @@ -3,7 +3,7 @@ console.log("Archivo vinculado exitosamente"); // Resolver acá los ejercicios propuestos. - +/* let nombre = "lucio" let edad = 12 console.log (`hola ${nombre}!`) @@ -14,3 +14,39 @@ if (edad<=13) { } else { console.log("mayor de edad") } +*/ + +/* +let maximo = 15 +let = 1; +while(i < maximo){ + if (i % 3 === 0){ + console.log(1); + } + i++; +} +*/ + +/* +let maximo = 15; +for (let i = 3; i < maximo; i +=3){ + console.log(i); +} +*/ + +/* +const frutas = ["manzanas", "pera", "uva"]; +for (const fruta of frutas){ + console.log(fruta); +} +*/ + +/* +function presentarse(nombre, edad){ + return 'Me llamo, ${nombre} y tengo ${edad} anos'; +} +const miPresentacion = presentarse("Lucio",18) +console.log(miPresentacion); +*/ + +