Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion challenges/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// Step 1: Create a higher-order function that will accept 3 parameters. The first two can take any argument. The last is your callback. This function should return your callback that passed the first two parameters as its argument.

/* Step 2: Create several functions.
/* Step 2: Create several functions that you will callback with the previous higher order function.
The first will return the sum of two numbers.
The second will return the product of two numbers.
The third will return the modulus of the two numbers.
Expand Down
17 changes: 7 additions & 10 deletions challenges/objects-arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@ What is the length of all 3 objects

const gameCharacters = [
{id: 1, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 2, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 3, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 4, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 5, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 6, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 7, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 8, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 9, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]},
{id: 10, name: "Mario", game: "Super Mario World", mission: "Save the Princess", enemy: "Bowser", subEnemies: ["Koopa", "Goomba", "BowserJr"]}
{id: 2, name: "Clank", game: "Ratchet & Clank", mission: "Save the Universe", enemy: "Robot", subEnemies: ["small animal", "small robot", "mini boss"]},
{id: 3, name: "Master Chief", game: "Halo", mission: "Save the Universe", enemy: "Covenant", subEnemies: ["small shooters", "snipers", "elite"]},
{id: 4, name: "Donkey Kong", game: "Donkey Kong Country", mission: "Get bananas back", enemy: "Kroc", subEnemies: ["snakes", "gators", "bees"]},
{id: 5, name: "Sonic", game: "Sonic the Hedgehog", mission: "collect coins", enemy: "Dr Eggman", subEnemies: ["lasers", "spikes", "shooters"]},
{id: 6, name: "Jak", game: "Jak & Dexter", mission: "Get back life", enemy: "main boss", subEnemies: ["miniboss", "blaster", "shooter"]},

];

// Step 1: Create a new array that will contain all games. Once you have it made, sort it ascending[A-Z]. Log the result. Solve two ways:
Expand All @@ -53,7 +50,7 @@ const gameCharacters = [
// Map or forEach


// Step 3: Find out how many sub enemies are in each character. Display the number as well as the array. Solve two ways
// Step 3: Find out how many sub enemies are in each character. Display the number as well as the array. After you have displayed it, then take out the first sub enemy of each character and return the new results. Solve two ways

// For Loop

Expand Down