Skip to content

Commit 27402ab

Browse files
if exercise
1 parent e7ce3a0 commit 27402ab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

if.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var nome = "Maria"
2+
3+
if (nome === "Mariana") {
4+
console.log('Boa! Esse é o seu nome mesmo!');
5+
} else if (nome === "Marina"){
6+
console.log('Ok, está quase lá...');
7+
} else {
8+
console.log('Poxa, você não é a Mariana...');
9+
}
10+
11+
// = é atribuição ; === é pergunta

0 commit comments

Comments
 (0)