Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 500 Bytes

JR - esGrande.md

File metadata and controls

25 lines (23 loc) · 500 Bytes
function esGrande (coso) {
  if (coso == 0 || coso == 1 || coso == 2) {
    return false
  }
  return true
}
console.log(esGrande(1))    // false
console.log(esGrande([2]))  // false
console.log(esGrande([3]))  // true

Explain the difference

function esGrande (coso) {
  if (coso == 0 || coso === 1 || coso === 2) {
    return false
  }
  return true
}
console.log(esGrande(1))    // false
console.log(esGrande([2]))  // true
console.log(esGrande([3]))  // true