-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
27 lines (21 loc) · 799 Bytes
/
app.js
File metadata and controls
27 lines (21 loc) · 799 Bytes
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
let numeroUn = 1
let stringUn = '1'
let numeroTreinta = 30
let stringTreinta = '30'
let numeroDiez = 10
let stringDiez = '10'
if (numeroUn == stringUn) {
console.log('Las variables numeroUn y stringUn tienen el mismo valor, pero tipos diferentes')
} else {
console.log('Las variables numeroUn y stringUn no tienen el mismo valor')
}
if (numeroTreinta == stringTreinta) {
console.log('Las variables numeroTreinta y stringTreinta tienen el mismo valor y el mismo tipo')
} else {
console.log('Las variables numeroTreinta y stringTreinta no tienen el mismo tipo')
}
if (numeroDiez == stringDiez) {
console.log('Las variables numeroDiez y stringDiez tienen el mismo valor, pero tipos diferentes')
} else {
console.log('Las variables numeroDiez y stringDiez no tienen el mismo valor')
}