-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChallenge01.js
More file actions
24 lines (21 loc) · 766 Bytes
/
Challenge01.js
File metadata and controls
24 lines (21 loc) · 766 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
let numeroUm = 1
let stringUm = `1`
let numeroTrinta = 30
let stringTrinta = `30`
let numeroDez = 10
let stringDez = `10`
if (numeroUm == stringUm) {
console.log('As variáveis numeroUm e stringUm tem o mesmo valor, mas tipos diferentes')
} else {
console.log('As variáveis numeroUm e stringUm não tem o mesmo valor')
}
if (numeroTrinta === stringTrinta) {
console.log('As variáveis numeroTrinta e stringTrinta tem o mesmo valor e mesmo tipo')
} else {
console.log('As variaveis numeroTrinta e stringTrint não tem o mesmo tipo')
}
if (numeroDez == stringDez) {
console.log('As variáveis numeroDez e stringDez tem o mesmo valor, mas tipos diferentes')
} else {
console.log('As variaveis numeroDez e stringDez não tem o mesmo valor')
}