Last active
December 24, 2015 06:39
-
-
Save skvggor/6758724 to your computer and use it in GitHub Desktop.
Explanation of IF statement for Chris
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Atribui um nome a variável 'nome' | |
nome = "Marcos Garcia"; | |
// Verifica se o 'nome' é maior ou igual a 10 caracteres | |
if (nome.length >= 10) { | |
console.log("I'm RIGHT!"); | |
// Se o nome ultrapassar 10 caracteres | |
} else { | |
console.log("I'm WRONG!"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment