Skip to content

Instantly share code, notes, and snippets.

@skvggor
Last active December 24, 2015 06:39
Show Gist options
  • Save skvggor/6758724 to your computer and use it in GitHub Desktop.
Save skvggor/6758724 to your computer and use it in GitHub Desktop.
Explanation of IF statement for Chris
// 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