I want to start a function when a var gets +1 and when a var gets -1. I know that its easy, but still dont know how to code this πππ
6/7/2017 7:42:07 PM
StoffelJs5 Answers
New Answerfunction checkValue(arg) { return arg <0? "value is nagative": "value is positive" } Es2016: const checkValue = arg=>arg <0? "value is nagative": "value is positive"
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message