Created
August 10, 2021 18:08
-
-
Save code-reaper08/4ecb3b1b6bb310c7ec26bf1628cc6ed4 to your computer and use it in GitHub Desktop.
Callback functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Readfile(filename, sizefinder) { | |
console.log('Reading file.....'); | |
sizefinder(); | |
} | |
function sizefinder() { | |
console.log('File size is 32mb'); | |
} | |
Readfile('sampletxt', sizefinder); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment