??? | Sololearn: Learn to code for FREE!

0

???

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

StoffelJs

5 Answers

New Answer

+1

function checkValue(arg) { return arg <0? "value is nagative": "value is positive" } Es2016: const checkValue = arg=>arg <0? "value is nagative": "value is positive"

0

function myFunction(){ var minus = 1; var plus = -1; } This?

0

Speak german?

0

Not fluent, but yeah

0

German here, what's the problem? I don't quite get your question...