Skip to content

Instantly share code, notes, and snippets.

View jmailman's full-sized avatar

Joshua Banks Mailman jmailman

View GitHub Profile
/*
READ ME
The bot responds to hearing the words "today", "yesterday", and "tomorrow" in any context.
In response, in proper English, it provides the date, month, and year.
It also provides a link to the Wikepedi page for that specific date and a
link to a website listing celebrities born on that date.
Then the bot asks for the user's favorite day of the week.
It listens (in any context) for the days of the week (Sunday, Monday, etc.).
@jmailman
jmailman / homework-01.js
Created October 5, 2017 19:02
homework-01.js
// Homework 1
// Hint: You may need SOME of these array iterator methods:
// .map(), .filter(), .forEach() , .some(), .every()
// Hint: You may also need SOME of the following methods:
// Number(), .reverse(), typeof(), .join()
// Let's say we have an array of prices named `prices`.
var prices = ['100', '125', '129', '37', '38', '75', '87', '94', '300', '301',
'305', '50', '0.30', '0.01', '0.5', '5', '15', '24', '35', '1041', '1', '17',