Skip to content

Conversation

@kenjelly22
Copy link

Worked through all npm tests until they all passed.

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.

Another way you could do this:

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

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