programming-examples/js/Functions/Write a JavaScript program to pass a 'JavaScript function' as parameter..js
2019-11-15 12:59:38 +01:00

10 lines
195 B
JavaScript

function addStudent(id, refreshCallback)
{
refreshCallback();
}
function refreshStudentList() {
console.log('Hello');
}
addStudent(1, refreshStudentList);