-
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 pull request #2237 from sergioab7/main
#00 - Javascript
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript/sergioab7.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,41 @@ | ||
/* | ||
* 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]!" | ||
*/ | ||
|
||
//Web oficial: https://developer.mozilla.org/es/docs/Web/JavaScript | ||
|
||
//Comentario normal | ||
|
||
/* | ||
Comentario de varias lineas de código | ||
*/ | ||
|
||
let variable_local = "variable local"; | ||
var variable_global = "variable global"; | ||
const constante = "constante"; | ||
|
||
let numero_entero = 1; | ||
let mi_String = "hola xaxxjs"; | ||
let decimal = 2.5; | ||
let booleano = true; | ||
let booleano2 = false; | ||
let valor_nulo = null; | ||
let valor_NaN = NaN; | ||
let valor_indefinido = undefined; | ||
let simbolo = Symbol("el simbolo"); | ||
let matriz = ["xaxxjs", 5, "test"]; | ||
let mi_objeto = { | ||
fecha:"hola" | ||
} | ||
|
||
console.log("¡HOla, javascript!"); |