Sun 2020.01.19
ref: code snippets in post #2 and post #3
And we now have a practical working example solution using the Ternary operator
condition ? exprIfTrue : exprIfFalse
explanation and examples
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator https://codeburst.io/javascript-the-conditional-ternary-operator-explained-cac7218beeff
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator
https://codeburst.io/javascript-the-conditional-ternary-operator-explained-cac7218beeff
@Robin started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sun 2020.01.19
And we now have a practical working example solution using the Ternary operator
explanation and examples