DEV Community

Discussion on: Welcome Thread - v15

Collapse
 
benjcal profile image
Benjamin Calderon

Saludos Luis!
I'm a developer but I'm in love with embedded dev, embedded Linux, microcontrollers and such (ST32 HAL is beautiful in my opinion!)

Anyways, welcome!

Collapse
 
trocha11 profile image
nilson

Hola yo soy NiluX o Linux

Collapse
 
zarulyakuza profile image
zarulyakuza

:) nice

Collapse
 
Sloan, the sloth mascot
Comment deleted
 
chiangs profile image
Stephen Chiang

here's one way:

const myFunc = (number) => 
  number === 1 ? 0 : number === 0 ? 1 : null;

myFunc(1)
// 0

myFunc(0)
// 1

myFunc(2)
// null