Call back function in javascript
<!DOCTYPE html>
<html>
<body>
<h2>Call Back Function In javascript</h2>
<script>
let test_array = [1,2,3,4];
function array_call(test_array,callback){
test_array.push(200);
callback();
}
array_call(test_array,function(){
document.write("array is:", test_array)
});
</script>
</body>
</html>
Thanks you for commenting your questions. I will see question and respond you.