Skip to content

Instantly share code, notes, and snippets.

@HabibulHH
Created August 29, 2018 06:57
Show Gist options
  • Save HabibulHH/f788c7cd191145f3d698fb2480fd9d28 to your computer and use it in GitHub Desktop.
Save HabibulHH/f788c7cd191145f3d698fb2480fd9d28 to your computer and use it in GitHub Desktop.
let isValid=function(){
return false;
}
function GetStudentList(isValidFuncAsParam){
if(isValidFuncAsParam()===true){
return ["labib","jinnah"];
}
else{
return null;
}
}
let studentList= GetStudentList(isValid);
console.log(studentList);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment