forked from mouredev/roadmap-retos-programacion
-
Notifications
You must be signed in to change notification settings - Fork 0
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 mouredev#2335 from ahinar/main
Main
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript/Ahinar.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,31 @@ | ||
/*Crea un comentario en el código | ||
y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.*/ | ||
|
||
// La pagina que se acerca mas a ser la oficial es https://developer.mozilla.org/en-US/ | ||
|
||
//- Representa las diferentes sintaxis que existen de crear comentarios en el lenguaje (en una línea, varias...). | ||
|
||
// este es un comentario de una linea | ||
|
||
/* Este es | ||
un comentario | ||
multilinea*/ | ||
|
||
//- Crea una variable (y una constante si el lenguaje lo soporta). | ||
|
||
let var1 = "variable"; | ||
const var2 = "Constante"; | ||
|
||
/*- Crea variables representando todos los tipos de datos primitivos | ||
del lenguaje (cadenas de texto, enteros, booleanos...).*/ | ||
|
||
//variables tipo numero | ||
let entero = 1452; //numero entero | ||
let float = 3.15; //float | ||
|
||
let cadena = "esto es un string";// tipo string | ||
|
||
let boolTrue = true; //booleanos | ||
let boolFalse = false; | ||
|
||
//- Imprime por terminal el texto: "¡Hola, Javascript!" |