Skip to content

Commit 4d55943

Browse files
author
Ben Nelson
committed
Initial commit
0 parents  commit 4d55943

14 files changed

Lines changed: 123 additions & 0 deletions

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["es2015"]
3+
}

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "airbnb-base",
3+
"plugins": [
4+
"import"
5+
]
6+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.swp
2+
node_modules

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Homework #1
2+
3+
## Instructions
4+
---
5+
1. Feynman Writing Prompts - Write out explanations of the following concepts like you are explaining it to a 12 year old. Doing this will help you quickly discover any holes in your understanding. Ask your questions on Slack.
6+
7+
* Variables
8+
* Strings
9+
* Functions (arguments, `return`)
10+
* `if` statements
11+
* Boolean values (`true`, `false`)
12+
13+
14+
2. Install Node and NPM. NPM comes packaged with Node. https://nodejs.org/en/download/
15+
16+
17+
3. Install SublimeText3. If you have another editor that you prefer then you can use that. https://www.sublimetext.com/3
18+
19+
20+
4. Download this project folder from GitHub.
21+
22+
23+
5. Navigate into the downloaded folder using Terminal(Mac) or Command Prompt(Windows). `ls`(Mac), `dir`(Windows) and `cd <directory_name>` are the commands you need to navigate around.
24+
25+
26+
6. Once you are in the folder type the command `npm install`. This will fetch all of the needed requirements for the project.
27+
28+
29+
7. Run `npm test` to run the automated tests. At first all of the tests will be broken. You will fill out the functions in `exercises.js` to make the tests pass.
30+
31+
32+
33+
34+
#### Congratulations on finishing Homework #1!
35+
Apply to our full-time or part-time immersive program to learn cutting edge technologies that are used by top technology companies around the world.
36+
37+
Our part-time and full-time courses are 13 intense weeks of focused study on the most relevant technologies.
38+
39+
Class sizes are small to ensure that each student gets individual attention from our world class instructors to help them succeed. We also provide career support both during and after the course to help you succeed. We are committed to your success.
40+
41+
For more information visit: https://www.lambdaschool.com

package.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "js-homework-1",
3+
"version": "1.0.0",
4+
"description": "LambdaSchool's JavaScript Mini-Bootcamp Homework 1",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "./node_modules/.bin/eslint tests/*.js && ./node_modules/.bin/eslint src/*.js && jest",
8+
"test:watch": "npm test -- --watch"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/SunJieMing/js-minicamp-homework-1.git"
13+
},
14+
"author": "Ben Nelson",
15+
"license": "ISC",
16+
"bugs": {
17+
"url": "https://github.com/SunJieMing/js-minicamp-homework-1/issues"
18+
},
19+
"homepage": "https://github.com/SunJieMing/js-minicamp-homework-1#readme",
20+
"devDependencies": {
21+
"babel-jest": "^19.0.0",
22+
"eslint": "^3.17.1",
23+
"eslint-config-airbnb-base": "^11.1.3",
24+
"eslint-plugin-import": "^2.2.0",
25+
"jest": "^19.0.2",
26+
"regenerator-runtime": "^0.10.3"
27+
},
28+
"dependencies": {
29+
"babel-preset-es2015": "^6.24.0",
30+
"eslint-config-airbnb": "^14.1.0"
31+
}
32+
}

src/arrays.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// pass by reference

src/callback-functions.js

Whitespace-only changes.

src/closure.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
// counter
3+
const counter = () => {
4+
let num = 0;
5+
6+
7+
8+
};
9+
10+
// return an arrow function (this is the closure scope)
11+
12+
// private variables and functions
13+
14+
// cache
15+
16+
// loop
17+
18+
// limit invocation count
19+
20+
// counter factory
21+
22+
module.exports = {
23+
counter,
24+
};

src/es6.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// const
2+
// let
3+
// default parameters
4+
// arrow functions
5+
// ...
6+
// class

src/objects.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// pass by reference

0 commit comments

Comments
 (0)