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!
Hola yo soy NiluX o Linux
:) nice
here's one way:
const myFunc = (number) => number === 1 ? 0 : number === 0 ? 1 : null; myFunc(1) // 0 myFunc(0) // 1 myFunc(2) // null
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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!
Hola yo soy NiluX o Linux
:) nice
here's one way: