-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mouredev:main' into reto-04
- Loading branch information
Showing
86 changed files
with
14,095 additions
and
1,468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/java/jossfullstack.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
public class cero_Cero { | ||
|
||
public static void main(String[] args) { | ||
// TODO Auto-generated method stub | ||
|
||
//Sitio web oficial: | ||
// https://www.java.com/es/ | ||
|
||
/* | ||
* https://www.java.com/es/ | ||
*/ | ||
|
||
//Variable | ||
//Tipo --->> + Nombre de la variable ´; | ||
String tazo; | ||
|
||
// Constante::::::: | ||
double pi = 3.14; | ||
|
||
//Variables con los tipos de datos primitivos::::::: | ||
|
||
byte ochobites; | ||
short dieciseisbites; | ||
int treintaydosbites; | ||
long sesentaycuatrobites; | ||
float treintaydosbotes_flotantecondobleprecisionde64bites; | ||
boolean trueorfalse; | ||
char caracterunidoce; | ||
|
||
//CONSTANTES RESPRESENTACION | ||
|
||
byte ochobites; | ||
short dieciseisbites; | ||
int treintaydosbites; | ||
long sesentaycuatrobites; | ||
float treintaydosbotes_flotantecondobleprecisionde64bites; | ||
boolean trueorfalse; | ||
char caracterunidoce; | ||
|
||
byte numeroMuyPequeño = 120; // Entero entre -128 e 127 | ||
short numeroPequeño = 31465; // Entero entre -32768 y 32767 | ||
int numero = 1000000; // Entero entre -2.147.483.648 y 2.147.483.647 | ||
long numeroMasGrande = 2000000000L; // Entero entre -9.223.372.036.854.775.808 e 9.223.372.036.854.775.807 | ||
float decimalPequeño = 14.3333F; // Decimal de 4 bytes | ||
boolean datoLogico = false; // Almacena valores true o false | ||
char caracter = '@'; // Caracteres unicode de 2 bytes | ||
double decimal = 12.1234657; // Decimal de 8 bytes | ||
|
||
|
||
System.out.println("¡Hola, Java!!"); | ||
|
||
|
||
|
||
} | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript/1Nonamed.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Documentación oficial de JavaScript : https://developer.mozilla.org/en-US/docs/Web/JavaScript | ||
|
||
// Diferentes sintaxis para crear comentarios en JS | ||
|
||
// Una línea: Comienza con '//' y sólo comenta la linea actual desde donde se escribe. | ||
|
||
/* Múltiples líneas: Comentarios extensos. | ||
Comienzan por "/*" y comentará todo el texto que escribamos hasta que cerremos el comentario con un */ | ||
|
||
// Variables y Constantes | ||
let name = 'Juan' | ||
const ten = 10 | ||
|
||
// Datos primitivos | ||
let lastname = 'López' // String | ||
let age = 25 // Number | ||
let isMale = true // Boolean | ||
let address // Undefined | ||
let stockAvailble = null // null | ||
let myBigInt = 2343n // BigInt | ||
|
||
let mySymbol = Symbol('unique') // Symbol | ||
// Se utilizan para añadir llaves de propiedades únicas a un objeto que no sean iguales a las claves que cualquier otro código pueda añadir al objeto, y que están ocultas de otro código utilice normalmente para acceder al objeto. | ||
|
||
console.log("Hola, JavaScript") |
43 changes: 43 additions & 0 deletions
43
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript/kenysdev.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
_____________________________________ | ||
https://github.com/kenysdev | ||
2024 - JavaScript | ||
___________________________________________________ | ||
00 SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO | ||
--------------------------------------------------- | ||
* - Crea un comentario en el código y coloca la URL del sitio web oficial del | ||
* lenguaje de programación que has seleccionado. | ||
* - Representa las diferentes sintaxis que existen de crear comentarios | ||
* en el lenguaje (en una línea, varias...). | ||
* - Crea una variable (y una constante si el lenguaje lo soporta). | ||
* - Crea variables representando todos los tipos de datos primitivos | ||
* del lenguaje (cadenas de texto, enteros, booleanos...). | ||
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" | ||
*/ | ||
|
||
// https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ | ||
// https://developer.mozilla.org/es/docs/Web/JavaScript | ||
|
||
/** | ||
* Documentación | ||
* @param {string} name - Usuario | ||
* @returns {string} Un saludo. | ||
*/ | ||
function hello(name) { | ||
return `Hola, ${name}!`; | ||
} | ||
|
||
let x = 5 // Variable numérica. | ||
const PI = 3.14159; // una constante. | ||
|
||
// Tipos de datos primitivos (https://developer.mozilla.org/es/docs/Web/JavaScript/Data_structures#valores_primitivos). | ||
let isAdult = true; // Tipo Boolean | ||
let emptyValue = null; // Tipo Null | ||
let undefinedVariable; // Tipo Undefined | ||
let price = 9.99; // Tipo Number | ||
let name = "Kenys"; // Tipo String | ||
let hugeNumber = 9007199254740991n; // Tipo BigInt | ||
let sym = Symbol("id"); // Tipo Symbol | ||
|
||
console.log(typeof price); | ||
console.log("¡Hola, JavaScript!"); |
16 changes: 16 additions & 0 deletions
16
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/php/manuelgomezg.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// https://www.php.net/manual/es/index.php | ||
// comentario de una linea | ||
# Esto es un comentario al estilo de consola de una sola línea | ||
<!-- comentario | ||
de | ||
multiples | ||
lineas --> | ||
<?php | ||
$name = "PHP"; // string | ||
$quantity = 33; // integer | ||
$price = 9.99; // float | ||
$paymentStatus = true; // boll | ||
$startDate = null; // Null | ||
// echo 'hola $name '; | ||
echo "Hola {$name} "; | ||
?> |
59 changes: 59 additions & 0 deletions
59
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/python/luistecnocode.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
''' | ||
/* | ||
* ¿Preparad@ para aprender o repasar el lenguaje de programación que tú quieras? | ||
* - Recuerda que todas las instrucciones de participación están en el | ||
* repositorio de GitHub. | ||
* | ||
* Lo primero... ¿Ya has elegido un lenguaje? | ||
* - No todos son iguales, pero sus fundamentos suelen ser comunes. | ||
* - Este primer reto te servirá para familiarizarte con la forma de participar | ||
* enviando tus propias soluciones. | ||
* | ||
* EJERCICIO: | ||
* - Crea un comentario en el código y coloca la URL del sitio web oficial del | ||
* lenguaje de programación que has seleccionado. | ||
* - Representa las diferentes sintaxis que existen de crear comentarios | ||
* en el lenguaje (en una línea, varias...). | ||
* - Crea una variable (y una constante si el lenguaje lo soporta). | ||
* - Crea variables representando todos los tipos de datos primitivos | ||
* del lenguaje (cadenas de texto, enteros, booleanos...). | ||
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" | ||
* | ||
* ¿Fácil? No te preocupes, recuerda que esta es una ruta de estudio y | ||
* debemos comenzar por el principio. | ||
*/ | ||
''' | ||
###### COMENTARIOS ###### | ||
|
||
# https://www.python.org/ | ||
|
||
# Una línea | ||
|
||
# Varias | ||
# Lineas | ||
|
||
''' | ||
Multilinea | ||
''' | ||
|
||
""" | ||
Otra multilinea | ||
""" | ||
|
||
###### VARIABLES ####### | ||
my_variable = 5 | ||
MY_CONSTANT = "mi constante" # No lo es, pero por convencion MAYUSCULAS | ||
|
||
my_int = 1 | ||
my_float = 1.2 | ||
my_bool = True | ||
my_string = "eso es un texto" | ||
my_other_string = 'esto es otro texto' | ||
|
||
print("Hola, Python!") | ||
|
||
print(type(my_int)) | ||
print(type(my_float)) | ||
print(type(my_bool)) | ||
print(type(my_string)) | ||
print(type(my_other_string)) |
Oops, something went wrong.