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 😂😂😇

7th Jun 2017, 7:42 PM
StoffelJs
5 Respuestas
+ 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"
8th Jun 2017, 12:11 AM
Calviղ
Calviղ - avatar
0
function myFunction(){ var minus = 1; var plus = -1; } This?
7th Jun 2017, 7:49 PM
Maart
Maart - avatar
0
Speak german?
7th Jun 2017, 7:50 PM
StoffelJs
0
Not fluent, but yeah
7th Jun 2017, 7:52 PM
Maart
Maart - avatar
0
German here, what's the problem? I don't quite get your question...
7th Jun 2017, 9:09 PM
Mario L.
Mario L. - avatar