Empresa engajada
Write a function that determines if a given number is odd. Follow up was to do it without using %, /, *, etc.
Sigiloso
function isEven (val) { val = String(val); return ['0', '2', '4', '6', '8'].includes(val[val.length -1]); }
n % 2 for my initial solution, and bit wise operator for the second
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.