Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: barpsilva/Prep-Course
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: ashartz/Prep-Course
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Jan 6, 2022

  1. Copy the full SHA
    e175e81 View commit details
  2. Copy the full SHA
    2fa6fa5 View commit details
  3. Merge pull request #1 from soyHenry/feat/clouding

    resource modules on AWS ok
    nachoamatt authored Jan 6, 2022
    Copy the full SHA
    51a0824 View commit details
  4. Copy the full SHA
    cebc82c View commit details
  5. Merge pull request #2 from soyHenry/feat/clouding

    AWS resources fixed on intro template
    nachoamatt authored Jan 6, 2022
    Copy the full SHA
    1bd7bcc View commit details
  6. Update .eleventy.js

    nachoamatt committed Jan 6, 2022
    Copy the full SHA
    01ed668 View commit details
  7. Copy the full SHA
    e8a53ad View commit details
  8. global data

    nachoamatt committed Jan 6, 2022
    Copy the full SHA
    3ac20ee View commit details
  9. Update .eleventy.js

    nachoamatt committed Jan 6, 2022
    Copy the full SHA
    e51e5fd View commit details
  10. Merge pull request #3 from soyHenry/refactor/resources-clouding-migra…

    …tion
    
    Refactor/resources clouding migration
    nachoamatt authored Jan 6, 2022
    Copy the full SHA
    7719b7a View commit details

Commits on Jan 7, 2022

  1. Copy the full SHA
    8951cd4 View commit details
  2. Merge pull request #4 from soyHenry/refactor/resources-clouding-migra…

    …tion
    
    front matter removed - parsing data from jsons
    nachoamatt authored Jan 7, 2022
    Copy the full SHA
    adf23c9 View commit details
  3. Update .eleventy.js

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    2553cc8 View commit details
  4. Copy the full SHA
    8ac9bcf View commit details
  5. Update .eleventy.js

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    03c255b View commit details
  6. modules added

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    ff96ff1 View commit details
  7. Update package.json

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    6741253 View commit details
  8. Merge pull request #6 from soyHenry/refactor/resources-clouding-migra…

    …tion
    
    Refactor/resources clouding migration
    nachoamatt authored Jan 7, 2022
    Copy the full SHA
    4abaf47 View commit details
  9. front matter removed

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    ddd9ed3 View commit details
  10. templates updated

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    345ec41 View commit details
  11. global data added

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    c62d4b7 View commit details
  12. Merge pull request #7 from soyHenry/refactor/removing-front-matter

    Refactor/removing front matter
    nachoamatt authored Jan 7, 2022
    Copy the full SHA
    93d6ce4 View commit details
  13. fix

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    db9764e View commit details
  14. test

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    b5a0cb5 View commit details
  15. case testing

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    75bbcaf View commit details
  16. case fixes

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    7b3d663 View commit details
  17. case fix

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    b6d2b96 View commit details
  18. case final fix

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    d57016a View commit details
  19. Copy the full SHA
    396010d View commit details
  20. subtitle added

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    7fa91ca View commit details
  21. spelling fix

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    5f534b7 View commit details
  22. assets migration

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    efea64a View commit details
  23. logo test

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    200a4e8 View commit details
  24. assets migration

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    0d79d06 View commit details
  25. assets migration

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    bb10218 View commit details
  26. assets migration

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    4b78b50 View commit details
  27. assets migration

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    25e25e2 View commit details
  28. assets migration

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    bbbbf4a View commit details
  29. Copy the full SHA
    3d7a558 View commit details
  30. favIcon updated

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    340d61a View commit details
  31. assets migration

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    16a9afe View commit details
  32. modules migration

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    ae7039d View commit details
  33. Copy the full SHA
    a178d8d View commit details
  34. Merge pull request #11 from soyHenry/staging

    aws migration
    nachoamatt authored Jan 7, 2022
    Copy the full SHA
    ad3fea3 View commit details
  35. Update README.md

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    928630e View commit details
  36. Merge pull request #12 from soyHenry/staging

    Update README.md
    nachoamatt authored Jan 7, 2022
    Copy the full SHA
    a96cdfc View commit details
  37. Title fix

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    97c07f7 View commit details
  38. Merge pull request #13 from soyHenry/staging

    Title fix
    nachoamatt authored Jan 7, 2022
    Copy the full SHA
    d7a4dcf View commit details
  39. Copy the full SHA
    dc97b0b View commit details
  40. Update package.json

    nachoamatt committed Jan 7, 2022
    Copy the full SHA
    949aa70 View commit details
Showing with 1,062 additions and 19,302 deletions.
  1. +41 −40 .eleventy.js
  2. +4 −2 .gitignore
  3. +109 −0 .reporter/index.js
  4. +9 −0 00-PrimerosPasos/README.json
  5. +1 −10 00-PrimerosPasos/README.md
  6. +9 −0 01a-Git/README.json
  7. +1 −10 {01-Git → 01a-Git}/README.md
  8. 0 {01-Git → 01a-Git}/homework/README.md
  9. +8 −0 01b-Git.-y-GitHub/README.json
  10. +3 −13 01-Git/Git y GitHub.md → 01b-Git.-y-GitHub/README.md
  11. +9 −0 01c-Conceptos/README.json
  12. +5 −12 {Conceptos → 01c-Conceptos}/README.md
  13. +10 −0 02-JS-I/README.json
  14. +1 −10 02-JS-I/README.md
  15. +9 −9 02-JS-I/homework/README.md
  16. +81 −28 02-JS-I/homework/homework.js
  17. +10 −0 03-JS-II/README.json
  18. +1 −10 03-JS-II/README.md
  19. +107 −2 03-JS-II/homework/homework.js
  20. +10 −0 04-JS-III/README.json
  21. +1 −10 04-JS-III/README.md
  22. +109 −5 04-JS-III/homework/homework.js
  23. +10 −0 05-JS-IV/README.json
  24. +2 −11 05-JS-IV/README.md
  25. +55 −4 05-JS-IV/homework/homework.js
  26. +10 −0 06-JS-V/README.json
  27. +1 −10 06-JS-V/README.md
  28. +40 −4 06-JS-V/homework/homework.js
  29. +10 −0 07-JS-VI/README.json
  30. +1 −10 07-JS-VI/README.md
  31. +25 −0 07-JS-VI/homework/homework.js
  32. +9 −0 08-HTML/README.json
  33. +1 −10 08-HTML/README.md
  34. +10 −0 09-CSS-Positioning/README.json
  35. +1 −10 09-CSS-Positioning/README.md
  36. +9 −0 11-Glosario/README.json
  37. +137 −0 11-Glosario/README.md
  38. +2 −2 Challenge/README.md
  39. +9 −0 README.json
  40. +6 −32 README.md
  41. BIN _src/assets/favicon.ico
  42. BIN _src/assets/logo-white.png
  43. BIN _src/assets/logo.png
  44. +4 −0 _src/data/config.json
  45. +1 −1 _src/data/layout.js
  46. +11 −0 _src/data/styles/code.js
  47. +11 −0 _src/data/styles/fonts.js
  48. +11 −0 _src/data/styles/footer.js
  49. +11 −0 _src/data/styles/header.js
  50. +11 −0 _src/data/styles/lesson.js
  51. +11 −0 _src/data/styles/lessonIntro.js
  52. +11 −0 _src/data/styles/main.js
  53. +11 −0 _src/data/styles/responsive.js
  54. +11 −0 _src/data/styles/sidebar.js
  55. +11 −0 _src/data/styles/topbar.js
  56. +27 −15 _src/layouts/intro.njk
  57. +38 −19 _src/layouts/lesson.njk
  58. BIN _src/modules/henry-reader-bar-0.2.0.tgz
  59. BIN _src/modules/henry-reading-time-0.1.0.tgz
  60. +0 −291 _src/styles/code.css
  61. +0 −29 _src/styles/fonts.css
  62. +0 −30 _src/styles/footer.css
  63. +0 −36 _src/styles/header.css
  64. +0 −198 _src/styles/lesson.css
  65. +0 −164 _src/styles/lessonIntro.css
  66. +0 −49 _src/styles/main.css
  67. +0 −156 _src/styles/responsive.css
  68. +0 −58 _src/styles/sidebar.css
  69. +0 −37 _src/styles/topbar.css
  70. +0 −17,961 package-lock.json
  71. +6 −4 package.json
81 changes: 41 additions & 40 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,71 +1,72 @@
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight')
const eleventyNavigationPlugin = require('@11ty/eleventy-navigation')
const toBootstrapNav = require('eleventy-navigation-bootstrap')
const pluginTOC = require("eleventy-plugin-toc");
const markdownIt = require("markdown-it");
const markdownItAnchor = require("markdown-it-anchor");
const markdownItHighlightJS = require("markdown-it-highlightjs");
const readerBar = require("henry-reader-bar");
const readingTime = require("henry-reading-time");
const pluginTOC = require('eleventy-plugin-toc')
const markdownIt = require('markdown-it')
const markdownItAnchor = require('markdown-it-anchor')
const markdownItHighlightJS = require('markdown-it-highlightjs')
const readerBar = require('henry-reader-bar')
const readingTime = require('henry-reading-time')

const mdOptions = {
html: true,
breaks: true,
linkify: true,
typographer: true,
};
}

const mdAnchorOpts = {
permalink: true,
permalinkClass: "anchor-link",
permalinkSymbol: "",
permalinkClass: 'anchor-link',
permalinkSymbol: '',
level: [1, 2, 3, 4],
};
}

module.exports = function (eleventyConfig) {

eleventyConfig.setLibrary(
"md",
'md',
markdownIt(mdOptions)
.use(markdownItAnchor, mdAnchorOpts)
.use(markdownItHighlightJS)
);
)

eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(readingTime);
eleventyConfig.addPlugin(readerBar);
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(eleventyNavigationPlugin)
eleventyConfig.addPlugin(readingTime)
eleventyConfig.addPlugin(readerBar)
eleventyConfig.addPlugin(syntaxHighlight)

eleventyConfig.addPlugin(pluginTOC, {
tags: ['h2', 'h3'],
ul: true
ul: true,
})

eleventyConfig.addPassthroughCopy("_src/styles");
eleventyConfig.addPassthroughCopy("_src/assets");

eleventyConfig.addNunjucksFilter('bootstrapNav', toBootstrapNav)

eleventyConfig.addLinter("Spelling check", function(content, inputPath, outputPath) {
let words = "lenght, .lenght, .rigth".split(",");
eleventyConfig.addLinter(
'Spelling check',
function (content, inputPath, outputPath) {
let words = 'lenght, .lenght, .rigth'.split(',')

// Eleventy 1.0+: use this.inputPath and this.outputPath instead
if( inputPath.endsWith(".md") ) {
for( let word of words) {
let regexp = new RegExp("\\b(" + word + ")\\b", "gi");
if(content.match(regexp)) {
console.warn(`Spelling check (${inputPath}) Found: ${word}`);
// Eleventy 1.0+: use this.inputPath and this.outputPath instead
if (inputPath.endsWith('.md')) {
for (let word of words) {
let regexp = new RegExp('\\b(' + word + ')\\b', 'gi')
if (content.match(regexp)) {
console.warn(`Spelling check (${inputPath}) Found: ${word}`)
}
}
}
}
});
)

eleventyConfig.addPassthroughCopy('_src/assets')
// eleventyConfig.addPassthroughCopy("_src/styles")

eleventyConfig.addNunjucksFilter('bootstrapNav', toBootstrapNav)

return {
dir: {
includes: "/_src/layouts",
data: "/_src/data",
output: "_dist",
pathPrefix: "/Prep-Course-Stage/"
layouts: '/_src/layouts',
data: '/_src/data',
output: '_dist',
},
};
};
}
}
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
node_modules
package-lock.json
.temp

# Eleventy build
# Eleventy
_dist

_cache
109 changes: 109 additions & 0 deletions .reporter/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
const gitRemoteOriginUrl = require("git-remote-origin-url");
const GitUrlParse = require("git-url-parse");
const fs = require('fs');
const os = require('os');
const axios = require('axios');
const path = require('path');

const WINDOWS = 'Windows_NT';
const MACOS = 'Darwin';
const LINUX = 'Linux';
const USERNAME = os.userInfo().username;
const WINDOWS_PATH = `C:\\Users\\${USERNAME}\\.gitconfig`;
const MACOS_PATH = `${os.homedir()}/.gitconfig`;
const LINUX_PATH = `${os.homedir()}/.gitconfig`;
function getGitEmail() {
switch (os.type()) {
case WINDOWS:
return getEmail(WINDOWS_PATH);
case MACOS:
return getEmail(MACOS_PATH);
case LINUX:
return getEmail(LINUX_PATH);
}
}
function searchEmail(str) {
var re = /(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/;
return re.exec(str);
}
function getEmail(PATH) {
try {
const email = searchEmail(fs
.readFileSync(PATH)
.toString());
if (email.length > 0) {
return email[0];
} else {
console.log(`
configura tu cuenta de git por favor!
https://git-scm.com/book/es/v2/Personalizaci%C3%B3n-de-Git-Configuraci%C3%B3n-de-Git`);
process.exit()
}
} catch (error) {
console.log(
`Tienes que instalar git!
https://git-scm.com/book/es/v2/Inicio---Sobre-el-Control-de-Versiones-Instalaci%C3%B3n-de-Git`
);
process.exit()
}
}

function readFile() {
try{
const lt = fs.readFileSync('./.reporter/lt.json');
return JSON.parse(lt);
} catch (e) {
return {};
}
}


module.exports = function report(data) {
try {
const lastRun = readFile();
const username = getGitEmail();
gitRemoteOriginUrl()
.then((remote) => {
const { name: repo, owner: github } = GitUrlParse(remote);
const pedidos = data.testResults.map(test => {
if(!lastRun[test.testFilePath]) {
lastRun[test.testFilePath] = {
passing: test.numPassingTests,
tries: 0,
}
}
if(lastRun[test.testFilePath].passing != test.numPassingTests || lastRun[test.testFilePath].tries == 0) {
const tries = lastRun[test.testFilePath].tries;
lastRun[test.testFilePath].passing = test.numPassingTests;
lastRun[test.testFilePath].tries = 1;
return axios.post('https://proxy.soyhenry.com:3001/m0/grade', {
"pending": test.numPendingTests,
"passing": test.numPassingTests,
"failed": test.numFailingTests,
"runtime": test.perfStats.runtime,
"slow": test.perfStats.slow,
"file": path.basename(test.testFilePath),
"repo": repo,
"github": github,
"username": username,
"tries": tries
});
} else {
lastRun[test.testFilePath].tries++;
lastRun[test.testFilePath].passing = test.numPassingTests;
return Promise.resolve();
}
});
return Promise.all(pedidos);
})
.then((results) => {
fs.writeFileSync('./.reporter/lt.json', JSON.stringify(lastRun));
})
.catch((err) => {
console.log(err);
});
} catch (error) {
console.error(error);
}
return data;
};
9 changes: 9 additions & 0 deletions 00-PrimerosPasos/README.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"lessonTitle": "Primeros Pasos",
"feedbackID": "00-PrimerosPasos",
"permalink": "/Primeros_Pasos/",
"eleventyNavigation": {
"key": "Primeros Pasos",
"order": 2
}
}
11 changes: 1 addition & 10 deletions 00-PrimerosPasos/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
---
title: Primeros Pasos
feedbackID: 00-PrimerosPasos
permalink: /Primeros_Pasos/
eleventyNavigation:
key: Primeros Pasos
order: 1
---

![HenryLogo](/_src/assets/logo.png)
![HenryLogo](https://henry-11ty-resources.s3.sa-east-1.amazonaws.com/Assets/logo-henry-white-lg.png)

<table class="hide" width="100%" style='table-layout:fixed;'>
<tr>
9 changes: 9 additions & 0 deletions 01a-Git/README.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"lessonTitle": "Git",
"feedbackID": "01-Git",
"permalink": "/Git/",
"eleventyNavigation": {
"key": "Git",
"order": 3
}
}
11 changes: 1 addition & 10 deletions 01-Git/README.md → 01a-Git/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
---
title: Git
feedbackID: 01-Git
permalink: /Git/
eleventyNavigation:
key: Git
order: 2
---

![HenryLogo](/_src/assets/logo.png)
![HenryLogo](https://henry-11ty-resources.s3.sa-east-1.amazonaws.com/Assets/logo-henry-white-lg.png)

<table class="hide" width="100%" style='table-layout:fixed;'>
<tr>
File renamed without changes.
8 changes: 8 additions & 0 deletions 01b-Git.-y-GitHub/README.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"lessonTitle": "Git y GitHub",
"permalink": "/Git_y_GitHub/",
"eleventyNavigation": {
"key": "Git y GitHub",
"order": 4
}
}
16 changes: 3 additions & 13 deletions 01-Git/Git y GitHub.md → 01b-Git.-y-GitHub/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
---
title: Git y GitHub
feedbackID: 01-Git
permalink: /Git_y_GitHub/
eleventyNavigation:
key: Git y GitHub
order: 6
---

![HenryLogo](/_src/assets/logo.png)
![HenryLogo](https://henry-11ty-resources.s3.sa-east-1.amazonaws.com/Assets/logo-henry-white-lg.png)

<table class="hide" width="100%" style='table-layout:fixed;'>
<tr>
@@ -45,7 +36,7 @@ Cuando trabajamos con Git nuestros archivos pueden vivir y moverse entre 4 difer

- **Archivos** ***Staged***: son archivos en staging. Viven dentro de Git y hay registro de ellos por que han sido afectados por el comando git add, aunque no sus últimos cambios. Git ya sabe de la existencia de estos últimos cambios, pero todavía no han sido guardados definitivamente en el repositorio por que falta ejecutar el comando git commit.

- **Archivos** ***Unstaged***: entiendelos como archivos "Traked pero Unstaged". Son archivos que viven dentro de Git poro no han sido afectados por el comando git add ni mucho menos por git commit. Git tiene un registro de estos archivos, pero esta desactualizado, sus últimas versiones solo estan guardadas en su disco duro.
- **Archivos** ***Unstaged***: entiendelos como archivos "Traked pero Unstaged". Son archivos que viven dentro de Git pero no han sido afectados por el comando git add ni mucho menos por git commit. Git tiene un registro de estos archivos, pero esta desactualizado, sus últimas versiones solo estan guardadas en su disco duro.

- **Archivos** ***Untracked***: son archivos que NO viven dentro de Git, solo en el disco duro. Nunca han sido afectados por git add, asi que Git no tiene registro de su existencia.

@@ -84,8 +75,7 @@ Le indicaremos a Git que queremos crear un nuevo repositorio para utilizar un si
de control de versiones.
Solo debemos posicionarnos en la carpeta raíz de nuestro proyecto y ejecutar el comando git init.

Recuerda que al ejecutar este comando (u de aquí en adelante) vamos a tener una nueva carpeta llamada **.git**
con toda la base de datos con cambios atómicos en nuestro proyecto.
Recuerda que al ejecutar este comando (y de aquí en adelante) vamos a tener una nueva carpeta llamada **.git** con toda la base de datos con cambios atómicos en nuestro proyecto.

Recuerda que Git está optimizado para trabajar en equipo, por lo tanto, debemos darle un poco de información sobre nosotros. No debemos hacerlo todas las veces que ejecutamos un comando, basta con ejecutar solo una vez los siguientes comandos con tu información:

9 changes: 9 additions & 0 deletions 01c-Conceptos/README.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"lessonTitle": "Conceptos",
"feedbackID": "conceptos-Expressions-vs-Statements",
"permalink": "/Conceptos/",
"eleventyNavigation": {
"key": "Conceptos",
"order": 5
}
}
17 changes: 5 additions & 12 deletions Conceptos/README.md → 01c-Conceptos/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
---
title: Conceptos
feedbackID: conceptos-Expressions-vs-Statements
permalink: /Conceptos/
eleventyNavigation:
key: Conceptos
order: 6.5
---

![HenryLogo](/_src/assets/logo.png)
![HenryLogo](https://henry-11ty-resources.s3.sa-east-1.amazonaws.com/Assets/logo-henry-white-lg.png)

<table class="hide" width="100%" style='table-layout:fixed;'>
<tr>
@@ -21,7 +12,9 @@ eleventyNavigation:
</tr>
</table>

# Expresiones vs Statements
# Conceptos

#### Expresiones vs Statements

<div class="iframeContainer">
<iframe src="https://player.vimeo.com/video/480856050" allow="autoplay; fullscreen"></iframe>
@@ -57,7 +50,7 @@ if (condicion) {
}
```

En este ejemplo, vemos que el `if` "hace algo", es decir, escribimos el if para que bifurque le ejecución del código según el valor de `condicion`. Como ya sabemos, si `condicion` tiene un valor *verdaderoso* entonces se ejecutará el bloque de código de arriba, y si no, el de abajo.
En este ejemplo, vemos que el `if` "hace algo", es decir, escribimos el if para que bifurque le ejecución del código según el valor de `condicion`. Como ya sabemos, si `condicion` tiene un valor *verdadero* entonces se ejecutará el bloque de código de arriba, y si no, el de abajo.
Fijensé que acá es importante discriminar lo que está *adentro* de los bloques de código, ya que ahí adentro podriamos escribir **expresiones** que sí devuelvan algo.

Nos podemos dar cuenta que algo es un statement, porque si lo *pegamos* en la consola del intérprete -por ejemplo, en la consola del Firefox o Chrome- vamos a ver que no produce ningún resultado:
10 changes: 10 additions & 0 deletions 02-JS-I/README.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"lessonTitle": "JavaScript I",
"feedbackID": "02-JS-I",
"permalink": "/JavaScript_I/",
"homeworkUrl": "https://github.com/soyHenry/Prep-Course/tree/main/02-JS-I/homework",
"eleventyNavigation": {
"key": "JS I",
"order": 6
}
}
11 changes: 1 addition & 10 deletions 02-JS-I/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
---
title: JavaScript I
feedbackID: 02-JS-I
permalink: /JavaScript_I/
eleventyNavigation:
key: JS I
order: 7
---

![HenryLogo](/_src/assets/logo.png)
![HenryLogo](https://henry-11ty-resources.s3.sa-east-1.amazonaws.com/Assets/logo-henry-white-lg.png)

<table class="hide" width="100%" style='table-layout:fixed;'>
<tr>
Loading