Skip to content

Instantly share code, notes, and snippets.

View fresh5447's full-sized avatar

Douglas Walter fresh5447

View GitHub Profile
@fresh5447
fresh5447 / arrayCardio.js
Last active March 30, 2017 15:46 — forked from johotpocket/array cardio 04
js-30 array cardio day 4
const inventors = [
{ first: 'Albert', last: 'Einstein', year: 1879, passed: 1955 },
{ first: 'Isaac', last: 'Newton', year: 1643, passed: 1727 },
{ first: 'Galileo', last: 'Galilei', year: 1564, passed: 1642 },
{ first: 'Marie', last: 'Curie', year: 1867, passed: 1934 },
{ first: 'Johannes', last: 'Kepler', year: 1571, passed: 1630 },
{ first: 'Nicolaus', last: 'Copernicus', year: 1473, passed: 1543 },
{ first: 'Max', last: 'Planck', year: 1858, passed: 1947 },
{ first: 'Katherine', last: 'Blodgett', year: 1898, passed: 1979 },
@fresh5447
fresh5447 / array cardio 04
Created March 30, 2017 15:45 — forked from johotpocket/array cardio 04
js-30 array cardio day 4
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Array Cardio 💪</title>
</head>
<body>
<p><em>Psst: have a look at the JavaScript Console</em> 💁</p>
<script>
// Get your shorts on - this is an array workout!
@fresh5447
fresh5447 / challenge33.js
Last active March 28, 2017 23:35 — forked from asternaut/challenge33.js
Practicing Methods
// -----------
// W/ CONSTRUCTOR
// ---------
// The constructor pattern is reccomened for this use case, because
// you only have to define the function once, then every Object
// will have access to that function.
function ZodiacInfo(sign, dates, element) {
this.sign = sign;
this.dates = dates;
this.element = element;