-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path00_Valores.js
40 lines (32 loc) · 861 Bytes
/
00_Valores.js
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
// ---------------------------- Valores Primitivos ----------------------------
// Number: 40
console.log( typeof 40 );
// String: 'Francisco Carusso'
console.log( typeof " " );
console.log( typeof 'Francisco Carusso' );
// Boolean: true, false
console.log( typeof true );
console.log( typeof false );
// Vacio: null
console.log( typeof null );
// Indifinido: undefined
console.log( typeof undefined );
// ---------------------------- Valores Objetos ----------------------------
// Array: [1, 2, 3]
console.log( typeof [ ] );
console.log( typeof [1, 2, 3] );
// Objeto: {nombre: "Francisco"}
console.log( typeof { } );
console.log( typeof {nombre: "Francisco"} );
// Estructura de un objeto
let option = {
option1: 1,
option2: 2,
option3: 3
};
let user = {
name: 'Jared',
age: 26,
membership: true
};
console.log( typeof user );