- Functions & Objects
- Useful algorithms
- Useful algoritms using functions (lodash)
- How does a web application work?
- Others?
- How to create a method
- The better way of seeing the expected results
To ensure your fork have the latest changes from this repository.
You need to create an upstream repository for your fork.
Notes on things I learned & snippets of code that will make my life easier
// how do I print to the console again?
console.log("Hello World!");
//how do I write if/else statement
if(condition){
return something;
} else {
return another thing;
}
In my project folder I create a test folder and create a test.js file inside the test folder.
Here is an example of test:
//how do I write a test using mocha
var assert = require("assert");
describe("In the ferry kata", function(){
it("I should be able to create a car", function(){
//Assemble
//Act
//Assert
assert.equal("car", "car");
});
});
Then to the terminal you get into the project folder that contains your test folder, test file and a function and you run 'mocha', this test will pass.
Here is another example of a failing test:
//a mocha failing test
var assert = require("assert");
describe("In the ferry kata", function(){
it(" I should be able to create cars", function(){
//Assemble
//Act
//Assert
assert.equal("car", "cars");
});
});
When you run this test the same way as the first one, it will fail.
add more here...
- Todo something useful A short description here
- Create a basic Express app How to get going with express
- Pretty's link Pretty's staff to know