diff --git a/.vscode/launch.json b/.vscode/launch.json index 8e6b48f2..86dedea3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,17 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + + { + "name": "Launch Program", + "program": "${workspaceFolder}/Basic DPS/00-helloworld.js", + "request": "launch", + "skipFiles": [ + "/**" + ], + "type": "node" + }/*, + { "type": "node", "request": "launch", @@ -12,6 +23,6 @@ "/**" ], "program": "${workspaceFolder}/Intermediate/17-debugging.js" - } + }*/ ] } \ No newline at end of file diff --git a/Basic DPS/00-helloworld.js b/Basic DPS/00-helloworld.js new file mode 100644 index 00000000..6af1ca1a --- /dev/null +++ b/Basic DPS/00-helloworld.js @@ -0,0 +1,17 @@ +// Esto es un comentario simple + +/* Esto es un +comentario multilínea */ + +console.log("¡Hola, JavaScript!"); +console.log('¡Hola, JavaScript!'); +console.log(`¡Hola, JavaScript!`); + +console.log("5") +console.log(5) +console.log(5 + 2) +console.log(5 - 2) +console.log(5 * 2) +console.log(5 / 2) +console.log(5 % 2) +console.log(5 ** 2) \ No newline at end of file diff --git a/Basic DPS/01-variables.js b/Basic DPS/01-variables.js new file mode 100644 index 00000000..59ac8e8a --- /dev/null +++ b/Basic DPS/01-variables.js @@ -0,0 +1,22 @@ +//var + +var helloWorld = "¡Hola, JavaScript!" +console.log(helloWorld) + +helloWorld = "¡Hola de nuevo, JavaScript!" +console.log(helloWorld) +//let + +let helloWorld2 = "¡Hola, JavaScript 2!" +console.log(helloWorld2) + +helloWorld2 = "¡Hola de nuevo, JavaScript 2!" +console.log(helloWorld2) + +//const + +const helloWorld3 = "¡Hola, JavaScript 3!" +console.log(helloWorld3) + +helloWorld3 = "¡Hola de nuevo, JavaScript 3!" +console.log(helloWorld3) \ No newline at end of file