Skip to content
Merged
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
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
# Basic JavaScript Mini
# Basic JavaScript Mini
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be changed to X


Topics:
* GitHub/Git
* Flow: fork -> clone -> (add/commit/push) -> pull request
* arrow functions `=>`
* `const`
* `let`
* String templates
* GitHub/Git
* Flow: fork -> clone -> (add/commit/push) -> pull request
* arrow functions `=>`
* `const`
* `let`
* String templates

## Project Description

### Initialize Project
* Change the JavaScript in the script file to use the new ES6 syntax.
* Change the JavaScript in the script file to use the new ES6 syntax.
* Change the functions to be arrow functions.
* Change the variables to `const` and `let`.

### Steps for submitting a pull request
### Steps for submitting a pull request
* Change your current working directory to your project: `cd /path/to/project`,
where `/path/to/project` is the filesystem path to your project directory.
* Step 1: Add all of your changes: `git add --all`
* Step 2: Commit your changes: `git commit -m "Changed code to ES6"`
* Step 3: Push your changes: `git push origin master`
* Step 3: Push your changes: `git push origin master`
* Step 4: On GitHub submit a pull request back to the main repo.

We do code reviews based off of this pull request process.

16 changes: 8 additions & 8 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
var logger = function() {
var message = 'hi';
console.log(message);
var message = 'hi';
console.log(message);
};

var looper = function() {
var message = 'I love JS!';
for (var i = 0; i < 10; i++) {
console.log(message);
}
var message = 'I love JS!';
for (var i = 0; i < 10; i++) {
console.log(message);
}
};

var greet = function(name) {
var greeting = 'Hello ' + name + '!';
console.log(greeting);
var greeting = 'Hello ' + name + '!';
console.log(greeting);
};

var yourName = 'put your name in here';
Expand Down