- [Introducción a los tipos de datos](#introducción-a-los-tipos-de-datos)
- [Números](#números)
- [Cadenas de texto](#cadenas-de-texto)
- [Booleanos](#booleanos)
- [Undefined](#undefined)
- [Null](#null)
- [Comprobando los tipos de datos](#comprobando-los-tipos-de-datos)
- [Comentarios](#comentarios)
- [Variables](#variables)
- [💻 Día 1: Ejercicios](#-día-1-ejercicios)
# 📔Día 1
@ -79,11 +88,11 @@ Asumo que tienes motivación, un fuerte deseo de convertirte en un desarrollador
Tal vez no lo necesites ahora pero si más adelante. Asi que instala [node.js](https://nodejs.org/en/)
![Node download](../../images/download_node.png)
![Node download](./images/download_node.png)
Luego de que se descargue, haz doble click e instálalo
![Install node](../../images/install_node.png)
![Install node](./images/install_node.png)
Puedes comprobar si se ha instalado correctamente abriendo la terminal del ordenador
@ -100,13 +109,13 @@ Existen muchos navegadores disponibles. Sin embargo, recomiendo especialmente Go
Instala [Google Chrome](https://www.google.com/chrome/) si aún no lo tienes. Podemos escribir un pequeño código JavaScript en la consola del navegador, pero no utilizamos la consola para desarrollar aplicaciones.
![Google Chrome](../../images/google_chrome.png)
![Google Chrome](./images/google_chrome.png)
#### Abriendo la consola de Google Chrome
Puedes abrir la consola de Google Chrome haciendo click en los tres puntos de la esquina superior derecha del navegador Chrome o utilizando un acceso directo. Yo prefiero usar los atajos.
Después de abrir la consola de Google Chrome, intenta explorar los botones marcados. Pasaremos la mayor parte del tiempo aquí. La consola es el lugar donde va el código de JavaScript. El motor de la Consola de Google V8 cambia tu código JavaScript a código de máquina. Escribamos un código JavaScript en la consola de Google Chrome:
![write code on console](../../images/js_code_on_chrome_console.png)
![write code on console](./images/js_code_on_chrome_console.png)
#### Escribiendo el código en la consola del navegador
@ -142,7 +151,7 @@ Para escribir nuestro primer código de JavaScript, usamos una función incorpor
El console.log(param1, param2, param3), puede tomar múltiples argumentos.
@ -175,7 +184,7 @@ Podemos añadir comentarios a nuestro código. Los comentarios son muy important
JavaScript es un lenguaje de programación. Como resultado, tiene su sintaxis como otros lenguajes. Si no escribimos una sintaxis que JavaScript entienda, se producirán diferentes tipos de errores. Exploraremos diferentes tipos de errores de JavaScript más adelante. Por ahora, veamos los errores de sintaxis.
![Error](../../images/raising_syntax_error.png)
![Error](./images/raising_syntax_error.png)
Cometí un error deliberado. Como resultado, la consola produce un error de sintaxis. En realidad, la sintaxis es muy informativa. Informa sobre el tipo de error que cometimos. Leyendo la guía de retroalimentación de errores, podemos corregir la sintaxis y arreglar el problema. El proceso de identificar y eliminar errores de un programa se llama 'debugging'. Corrijamos los errores:
@ -192,7 +201,7 @@ Hasta ahora, hemos visto cómo mostrar el texto usando un console.log(). Si impr
Ahora, practiquemos más la escritura de códigos JavaScript usando console.log() en la consola de Google Chrome para los tipos de datos numéricos. Además del texto, también podemos hacer cálculos matemáticos usando JavaScript. Hagamos los siguientes cálculos sencillos.
![Arithmetic](../../images/arithmetic.png)
![Arithmetic](./images/arithmetic.png)
console.log(2 + 3) // Adición
console.log(3 - 2) // Sustracción
@ -209,7 +218,7 @@ Podemos escribir nuestros códigos en la consola del navegador, pero no será pa
Visual Studio es un editor de texto de código abierto muy popular. Recomendaría descargarlo, pero si estás a favor de otros editores, siéntete libre de seguir con lo que tienes.
![Vscode](../../images/vscode.png)
![Vscode](./images/vscode.png)
Si ya instalaste Visual Studio Code, empezaremos a usarlo.
@ -217,17 +226,17 @@ Si ya instalaste Visual Studio Code, empezaremos a usarlo.
Abre Visual Studio Code haciendo doble clic en el ícono de Visual Studio. Cuando lo abras, obtendrás este tipo de interfaz. Intenta interactuar con los iconos etiquetados.
@ -509,7 +518,7 @@ Declaremos las variables con diferentes tipos de datos. Para declarar una variab
Cuando ejecutas los archivos en la carpeta Día_1 deberías obtener esto:
![Day one](../../images/day_1.png)
![Day one](./images/day_1.png)
🌕 Eres increíble. Acabas de completar el desafío del día 1 y estás en camino a la grandeza. Ahora haz algunos ejercicios para tu cerebro y para tus músculos.