callback-number
v1.0.4
Published
show a number
Downloads
1
Maintainers
Readme
👥 Authors
👤 SYED ASAD JAMIL
- GitHub: Asad-Zaidi
- NPM: asad-zaidi
🛠 Built With: JavaScript
A function named showNumber is defined
It takes a single argument, which is expected to be a callback function. Inside the function, a variable number is assigned the value 123. Then, the callback function is invoked with number as an argument.
The showNumber function is used by passing an anonymous callback function as an argument. This callback function takes a parameter result, which will receive the value of number (123 in this case). Inside the callback, it logs a message to the console, concatenating the result.
🛠 Exporting the Function:
Finally, the showNumber function is exported using module.exports. This makes the showNumber function available for use in other files.
🚀 NPM Package
📝 License
This project is MIT licensed.