Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const defaultInfoMsg = 'No info provided!';
- const info = (msg = defaultInfoMsg) => {
- console.log(`info: ${msg}`);
- };
- const error = (msg = defaultInfoMsg) => {
- console.log(`error ${msg}`);
- };
- const success = (msg = defaultInfoMsg) => {
- console.log(`success ${msg}`);
- }
- export default {
- info,
- error,
- success,
- };
Advertisement
Add Comment
Please, Sign In to add comment