Is there a better way to do optional function parameters in JavaScript duplicate
This motion already has solutions present Fit a default parameter worth for a JavaScript relation 29 solutions Closed eight years agone Ive ever dealt with
        
    { Code - Sleep - Repeat }