File tree Expand file tree Collapse file tree 2 files changed +20
-19
lines changed
Expand file tree Collapse file tree 2 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 1- # Basic JavaScript Mini
1+ # Basic JavaScript Mini
22
33Topics:
4- * GitHub/Git
5- * Flow: fork -> clone -> (add/commit/push) -> pull request
6- * arrow functions `=>`
7- * `const`
8- * `let`
9- * String templates
4+ * GitHub/Git
5+ * Flow: fork -> clone -> (add/commit/push) -> pull request
6+ * arrow functions ` => `
7+ * ` const `
8+ * ` let `
9+ * String templates
1010
1111## Project Description
1212
1313### Initialize Project
14- * Change the JavaScript in the script file to use the new ES6 syntax.
14+ * Change the JavaScript in the script file to use the new ES6 syntax.
1515* Change the functions to be arrow functions.
1616* Change the variables to ` const ` and ` let ` .
1717
18- ### Steps for submitting a pull request
18+ ### Steps for submitting a pull request
19+ * Change your current working directory to your project: ` cd /path/to/project ` ,
20+ where ` /path/to/project ` is the filesystem path to your project directory.
1921* Step 1: Add all of your changes: ` git add --all `
2022* Step 2: Commit your changes: ` git commit -m "Changed code to ES6" `
21- * Step 3: Push your changes: ` git push origin master `
23+ * Step 3: Push your changes: ` git push origin master `
2224* Step 4: On GitHub submit a pull request back to the main repo.
2325
2426We do code reviews based off of this pull request process.
25-
Original file line number Diff line number Diff line change 11var logger = function ( ) {
2- var message = 'hi' ;
3- console . log ( message ) ;
2+ var message = 'hi' ;
3+ console . log ( message ) ;
44} ;
55
66var looper = function ( ) {
7- var message = 'I love JS!' ;
8- for ( var i = 0 ; i < 10 ; i ++ ) {
9- console . log ( message ) ;
10- }
7+ var message = 'I love JS!' ;
8+ for ( var i = 0 ; i < 10 ; i ++ ) {
9+ console . log ( message ) ;
10+ }
1111} ;
1212
1313var greet = function ( name ) {
14- var greeting = 'Hello ' + name + '!' ;
15- console . log ( greeting ) ;
14+ var greeting = 'Hello ' + name + '!' ;
15+ console . log ( greeting ) ;
1616} ;
1717
1818var yourName = 'put your name in here' ;
You can’t perform that action at this time.
0 commit comments