0

Please can someone tell me how I can return an if statement in js

16th Feb 2020, 11:31 PM
NachoDev
NachoDev - avatar
2 Answers
+ 1
function check(condition, funct){ return if(eval(condition)){funct()};}
17th Feb 2020, 1:50 AM
Sarthak
Sarthak - avatar
+ 1
Question unclear, what do you want to do?
16th Feb 2020, 11:55 PM
Aymane Boukrouh
Aymane Boukrouh - avatar