Skip to content

Conversation

@yuriyivanenko
Copy link

No description provided.

Comment on lines +2 to +6
const currentUser = 'Grace Hopper';
const welcomeMessage = `Welcome to Flatbook, ${currentUser}!`;
const excitedWelcomeMessage = welcomeMessage.toUpperCase();

const shortGreeting = `Welcome, ${currentUser.slice(0,1)}!`;

Choose a reason for hiding this comment

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

Any reason for the inconsistent line spacing?

Copy link
Author

Choose a reason for hiding this comment

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

Not exactly. I just wanted some separation I guess. What are the usual conventions for line spacing in code?

Choose a reason for hiding this comment

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

There usually aren't any strict conventions around spacing in this sense--mostly personal preference. I would say lean toward readability and consistency.

I was mostly just curious if you added the space for a certain reason or not. Seems like you had one and usually that's all that matters, if you see what I mean.

@stephenmckeon
Copy link

@yuriiivan Great work!

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