Skip to content

Instantly share code, notes, and snippets.

@Louiefigz
Louiefigz / aaron
Created April 30, 2016 15:36
like work
what evers
@Louiefigz
Louiefigz / bates motel
Created April 30, 2016 15:55
according to slim shady
Norman is normal
@Louiefigz
Louiefigz / number 1 on the charts
Created April 30, 2016 15:58
its the future I can see
thats so raven
@Louiefigz
Louiefigz / broad city
Created April 30, 2016 16:23
and three
one and two
@Louiefigz
Louiefigz / Broad city 2
Created April 30, 2016 16:24
VBroke up with Ilana
LINCOLN
@Louiefigz
Louiefigz / creating gist
Created April 30, 2016 16:37
the ill message
Who kayvon
function Sandwich(bread, ingredients, cut) {
this.bread = bread;
this.ingredients = ingredients;
this.cut = cut;
this.serve = function() {
console.log("here's your " + this.name + ", enjoy!");
}
}
var blt = new Sandwich("white", ["bacon","lettuce","tomato","mayo"],"rectangle");
function Sandwich(bread, ingredients, name) {
this.bread = bread;
this.ingredients = ingredients;
this.name = name;
}
function serve() {
console.log("here's your " + this.name + ", enjoy!");
}
function Sandwich(bread, ingredients, name) {
this.bread = bread;
this.ingredients = ingredients;
this.name = name;
}
function serve(customer) {
// From the variable gc, we have access to this.name
console.log("Hey " + customer + ", here's your " + this.name + ", enjoy!");
}
class RegistrationForm extends React.Component {
render() {
return (
<form>
<label>Username</label>
<input type="text" />
<label>Password</label>
<input type="password" />
<button type="submit">Register</button>
</form>