I am new to javascript and this is my function:
var now = any(function(result){
console.log(result);
})
function any(gone){
return gone
}
console.log(now)
but if I give it params like var now = any(function(result){ it returns me tada.. what I want is it should take default value null or None like in python and if the value is not provide it should give null or None
function any(gone=null) somthing like this.. after that I want to receive callback in result
nowget?