Skip to content

Conversation

daddyshivvy
Copy link

No description provided.

const sayHey = require('./lib/greet.js');

greet.sayHey = ('Shivvy');
greet.sayBye();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are you defining greet?

module.exports = exports = {};

exports.sayHey = function(name) {
if (arguments.length[0] === 0) throw new Eror('please insert a name');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line will not work. Look closely at it. See if you can see why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants