I am trying to figure out why I cant pass a string into a function that contains another function. I get undefined when I alert.
$.fn.downCount = function (current_time) {
function countdown(current_time) {
alert(current_time)
}
})
var current_time = "01:00";
downCount(current_time);
current_timeas an argument ofcountdownif you want to use thecurrent_timefromdownCount.