Conference 1 | Conference 2 |
---|---|
Rob | Michael |
Danny F | Ping |
Jishan | Iryna |
Emma | Thad |
Alex | Josh W |
Danny L | Georgia |
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
// what is a callback function in js? | |
[1, 2, 3].forEach((v, i) => { | |
console.log(v) | |
}) | |
const myFunc = (cb) => { | |
return cb(10) | |
} |
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
// harrison will show you how to run the tests and also what lodash is | |
// https://www.npmjs.com/browse/depended | |
/* | |
Is Match | |
Tells you if the keys and values in properties are contained in object. | |
Example: | |
var stooge = {name: 'moe', age: 32}; | |
isMatch(stooge, {age: 32}); | |
=> true |
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
// es5 prototype syntax | |
function Hero(name, level) { | |
this.name = name; | |
this.level = level; | |
} | |
Hero.prototype.shout = function() { | |
return `I'm ${this.name}!`; | |
}; |
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
const movies = require('/home/movies'); | |
const users = require('/home/users'); | |
function topWatchlistedMoviesAmongFriends(user_id, users, movies) { | |
// get current user | |
const currentUser = users.find((user) => user.userId === user_id) | |
// return an empty array if a current user can't be found | |
if (!currentUser) { | |
return [] |
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
function Person(name) { | |
this.name = name | |
} | |
Person.prototype.greeting = function() { | |
console.log(`hi`) | |
} | |
function Arm(name) { | |
Person.call(this, name) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<script src="index.js"></script> | |
</head> | |
<body> | |
<h1>Intro to JS Lesson 👩💻</h1> |
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
Q9 | |
tables | |
rows | |
attributes | |
datatypes dependent on the type of rdbms, in postgres you have bigint, text, varchar etc |
Ensure that:
- You submit with the correct folder structure using docs, ppt and src correctly
- You have the README.md at the root of this directory and that inside of src is the root of your rails project
- You have instructions in your README.md of what credentials are needed to run the rails app in development
- You don't include your master.key and your credentials.yml.enc (when we mark your assessment we'll include our own personal credentials when running your app in dev)
One example of a higher level component in my app is Active Record. Active record is a module with the Base class inside of it that gives our models methods through inheritance that allow us to manipulate data.
Essentially, active record can be called on our models to create, read, update and delete records. In the background it's executing SQL that does this record manipulation.