npm install -g eslint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculates area | |
* @param {Number} w - represents width | |
* @param {Number} h - represents height | |
* @return {Number} Sum of w and h | |
*/ | |
function area(w, h) { | |
return w * h; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('./db'); | |
var Person = require('./person'); | |
var Story = require('./story'); | |
async function seed() { | |
await Person.remove({}); | |
await Story.remove({}); | |
let user = new Person({ name: 'Herman Melville' }); |
Here is my code that checks for win logic. I enjoy it.
function checkWin(){
}
Name | Game Type | Trello | Github |
---|---|---|---|
Berry | Hangman | [Link][berry-trello] | [project1][berry-github] |
Clarissa | Guess the Music Scale | [Link][clarissa-trello] | [maqam][clarissa-github] |
James | Checkers | [Link][james-trello] | [checkers][james-github] |
Joseph | Blackjack | [Link][joseph-trello] | [Project1][joseph-github] |
Mondale | Simon | [Link][mondale-trello] | [Simon][mondale-github] |
Rony | Connect Four | [Link][rony-trello] | [RaConnect4][rony-github]/[HangMan][ronny-hangman] |
Outcomes Tracker Sort by Last Name
function sort() {
var names = Array.from( document.querySelectorAll('.student-name') );
names.sort(function(a, b) {
var a = a.textContent.trim().split(' ')[1];
var b = b.textContent.trim().split(' ')[1];
return a == b ? 0 : (a < b ? -1 : 1);
});
NewerOlder