I have only gotten the list and random output parts covered - literally everything else I have no idea what to freaking do. The coding language I'm using is JavaScript, and the compiling stuff is obviously Node. I thought it was gonna be easy but this shit is pretty fucking hard.
I just know I need to use _. difference for the iterating task. But I got no clue what "iterating" means in the context of coding, and I don't know a foolproof way to figure out that calculation smh. I've tried to use LoDash functions to output Christmas and Canada Day, but it doesn't work at all.
const Holiday = require ("./holiday")
const holiday1 = new Holiday ("New Year's", "January", 01)
const holiday2 = new Holiday ("Canada Day", "July", 01)
//new Holiday ("Christmas", "December", 31)
let holidays = [
holiday1,
new Holiday ("Valentine's Day", "February", 02),
new Holiday ("St. Patrick's Day", "March", 03),
new Holiday ("April Fool's", "April", 01),
new Holiday ("Good Friday", "April", 02),
new Holiday ("Easter", "April",
new Holiday ("Mother's Day", "May", 05),
new Holiday ("Father's Day", "June", 06),
new Holiday ("Civic Holiday", "August", 08),
new Holiday ("Labour Day", "September", 09),
new Holiday ("Halloween", "October", 10),
new Holiday ("Thanksgiving", "November", 01),
new Holiday ("Remembrance Day", "November", 02),
new Holiday ("Boxing Day", "December", 02),
holiday2,
new Holiday ("Canada Day", "July", 01),
new Holiday ("Christmas", "December", 01),
]
//console.
Girl's Behavior
Guy's Behavior
Flirting
Dating
Relationships
Fashion & Beauty
Health & Fitness
Marriage & Weddings
Shopping & Gifts
Technology & Internet
Break Up & Divorce
Education & Career
Entertainment & Arts
Family & Friends
Food & Beverage
Hobbies & Leisure
Other
Religion & Spirituality
Society & Politics
Sports
Travel
Trending & News
Most Helpful Opinions