forked from mouredev/hello-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path02-datatypes.js
More file actions
53 lines (39 loc) · 1.05 KB
/
02-datatypes.js
File metadata and controls
53 lines (39 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
Clase 17 - Tipos de datos
Vídeo: https://youtu.be/1glVfFxj8a4?t=3599
*/
// Tipos de datos primitivos
// Stings
let sport = 'Paragliding ';
let favoriteBrand = 'Ozone';
let level = 'EN C'
console.log(sport + favoriteBrand );
// Numbers
let age = 36;
let hight = 1.70;
let weigth = 73.5;
console.log(age)
//Boolean
let heIsInstructor = false;
let heIsPilot = true;
console.log(heIsPilot);
// Undefined
let undifinedValue
console.log(undifinedValue);
//Null
let nullData = null;
console.log(nullData);
//BigInt
let myBigInt = BigInt(72348975928437957297547928753278279075489237854);
console.log(myBigInt);
let myBigInt2 = 273472789589247895789275982734895732897543289787328n;
console.log(myBigInt2);
// Symbol
let mySymbol = Symbol("mySymbol"); //estos simbolos son utiles como identificadores de propiedades ( objetos), mas adelante se ve.
console.log(typeof sport);
console.log(typeof age);
console.log(typeof heIsInstructor);
console.log(typeof myBigInt);
console.log(typeof mySymbol);
console.log(typeof undifinedValue);
console.log(typeof nullData);