Skip to content

Conversation

@dopolZ
Copy link

@dopolZ dopolZ commented Oct 1, 2019

No description provided.

'use strict';

const hello = null;
const hello = name => console.log('Hello, ' + name);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const hello = name => console.log('Hello, ' + name);
const hello = name => {
console.log('Hello, ' + name);
};

Comment on lines +3 to +9
const createUser = (name, city) => {
const obj = {};
obj.name = name;
obj.city = city;

return obj;
};
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const createUser = (name, city) => {
const obj = {};
obj.name = name;
obj.city = city;
return obj;
};
const createUser = (name, city) => ({ name, city });

@dopolZ dopolZ closed this Apr 5, 2025
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.

2 participants