re: Welcome Thread - v15 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hello, my name is Luis. I'm from Colombia. I'm an electronic engineer but I love to code. I'm not a pro in this, but I try my best to learn every d...
 

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!

 
 
 
Sloan, the sloth mascot Comment marked as low quality/non-constructive by the community View code of conduct

Oh yes embedded is most in use this days and grow like multiply as everyone now know streaming even small companies and organisations going for streaming

 
[deleted]

here's one way:

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

myFunc(1)
// 0

myFunc(0)
// 1

myFunc(2)
// null
code of conduct - report abuse