Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["@babel/preset-env"]
}

11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
// Write your code in this file!
// Define the currentUser variable
const currentUser = 'Grace Hopper';

// Define the welcomeMessage variable, concatenating strings
const welcomeMessage = 'Welcome to Flatbook, ' + currentUser;

// Define the excitedWelcomeMessage variable, converting the welcomeMessage to uppercase
const excitedWelcomeMessage = welcomeMessage.toUpperCase();

// Define the shortGreeting variable, using only the first letter of currentUser
const shortGreeting = `Welcome, ${currentUser.slice(0, 1)}!`;
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@
},
"homepage": "https://github.com/learn-co-curriculum/js-basics-strings-code-along#readme",
"devDependencies": {
"babel-core": "6.26.3",
"babel-preset-env": "1.7.0",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"babel-core": "^5.8.38",
"babel-preset-env": "^0.0.0",
"chai": "4.1.2",
"jsdom": "9.2.1",
"mocha": "5.2.0",
"chai-spies-next": "^0.9.3",
"jsdom": "^25.0.1",
"mocha": "^11.0.1",
"mocha-jsdom": "~1.1.0",
"mocha-multi": "1.0.1",
"chai-spies-next": "^0.9.3"
"mocha-multi": "^1.1.7"
},
"dependencies": {
"sinon": "^7.3.2"
Expand Down