callback-number

1.0.4 • Public • Published

Callback-ShowNumber

👥 Authors

👤 SYED ASAD JAMIL

🛠 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.

Package Sidebar

Install

npm i callback-number

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

3.28 kB

Total Files

4

Last publish

Collaborators

  • asad-zaidi