From 547338b06a60c7c3ce6fd1b8093e63cdd3f59194 Mon Sep 17 00:00:00 2001 From: Maxi Rojas Date: Thu, 16 Apr 2026 01:15:35 +0200 Subject: [PATCH 1/5] nueva carpeta private --- Basic/Private/00-helloworld.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Basic/Private/00-helloworld.js diff --git a/Basic/Private/00-helloworld.js b/Basic/Private/00-helloworld.js new file mode 100644 index 00000000..e69de29b From afb966daf0e0588f752c8f064e20529cd29d61dd Mon Sep 17 00:00:00 2001 From: Maxi Rojas Date: Thu, 16 Apr 2026 01:41:16 +0200 Subject: [PATCH 2/5] console log --- Basic/Private/00-helloworld.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Basic/Private/00-helloworld.js b/Basic/Private/00-helloworld.js index e69de29b..0a581e00 100644 --- a/Basic/Private/00-helloworld.js +++ b/Basic/Private/00-helloworld.js @@ -0,0 +1,4 @@ +console.log("Hello World"); +console.log('Hola Javascript'); +console.log(`Hello World`); +console.log("Hello World", "Hola Javascript", `Hello World`); From 08eefc944c20a34b7f9d5eaaf342f949df75b03a Mon Sep 17 00:00:00 2001 From: Maxi Rojas Date: Thu, 16 Apr 2026 02:03:49 +0200 Subject: [PATCH 3/5] variables --- Basic/Private/01-variables.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Basic/Private/01-variables.js diff --git a/Basic/Private/01-variables.js b/Basic/Private/01-variables.js new file mode 100644 index 00000000..f73917b0 --- /dev/null +++ b/Basic/Private/01-variables.js @@ -0,0 +1,5 @@ +let helloWorld = "Hello World"; +const pi = 3.14159; + +console.log(helloWorld); +console.log(pi); From d3542bfd1da6acfe36760219dcb141158771eb63 Mon Sep 17 00:00:00 2001 From: Maxi Rojas Date: Thu, 16 Apr 2026 02:07:12 +0200 Subject: [PATCH 4/5] datatypes --- Basic/Private/02-datatypes.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Basic/Private/02-datatypes.js diff --git a/Basic/Private/02-datatypes.js b/Basic/Private/02-datatypes.js new file mode 100644 index 00000000..dd290c51 --- /dev/null +++ b/Basic/Private/02-datatypes.js @@ -0,0 +1,10 @@ +//strig +let name = "Maxi"; +let username = 'max'; +let email = `max@maxi.com`; +//number +let age = 30; +let height = 1.75; +//boolean +let isStudent = true; +let isTeacher = false; \ No newline at end of file From 01964608566943389c24a4bf64158e71495b372f Mon Sep 17 00:00:00 2001 From: Maxi Rojas Date: Thu, 16 Apr 2026 02:23:34 +0200 Subject: [PATCH 5/5] more datatypes --- Basic/03-beginner-exercises.js | 6 ++++++ Basic/Private/02-datatypes.js | 36 +++++++++++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 3 deletions(-) diff --git a/Basic/03-beginner-exercises.js b/Basic/03-beginner-exercises.js index 2e7dd657..4426ab4a 100644 --- a/Basic/03-beginner-exercises.js +++ b/Basic/03-beginner-exercises.js @@ -5,10 +5,16 @@ Vídeo: https://youtu.be/1glVfFxj8a4?t=4733 // 1. Escribe un comentario en una línea +// hola mundo + // 2. Escribe un comentario en varias líneas +/* hola +mundo */ + // 3. Declara variables con valores asociados a todos los datos de tipo primitivos + // 4. Imprime por consola el valor de todas las variables // 5. Imprime por consola el tipo de todas las variables diff --git a/Basic/Private/02-datatypes.js b/Basic/Private/02-datatypes.js index dd290c51..cf3202f7 100644 --- a/Basic/Private/02-datatypes.js +++ b/Basic/Private/02-datatypes.js @@ -2,9 +2,39 @@ let name = "Maxi"; let username = 'max'; let email = `max@maxi.com`; -//number +//number basic let age = 30; let height = 1.75; //boolean -let isStudent = true; -let isTeacher = false; \ No newline at end of file +let isStudent = true; // primero tru y luego false si se usan en el mismo programa +let isTeacher = false; +//undefined +let address; // no se le asigna un valor, por lo que es undefined +//null +let phoneNumber = null; // se le asigna null para indicar que no tiene un valor válido +//object +let person = { + name: "Maxi", + age: 30, + isStudent: true +}; +//symbol +let uniqueId = Symbol("id"); // se crea un símbolo único con la descripción "id" +//bigint +let bigNumber = 1234567890123456789012345678901234567890n; // se crea un número grande utilizando la notación "n" al final +//imprimir los valores de las variables +let myBigInt = BigInt("1234567890123456789012345678901234567890"); // se crea un número grande utilizando la función BigInt +console.log("Name:", name); +console.log("Username:", username); +console.log("Email:", email); +console.log("Age:", age); +console.log("Height:", height); +console.log("Is Student:", isStudent); +console.log("Is Teacher:", isTeacher); +console.log("Address:", address); +console.log("Phone Number:", phoneNumber); +console.log("Person:", person); +console.log("Unique ID:", uniqueId); +console.log("Big Number:", bigNumber); +console.log("My BigInt:", myBigInt); +