Skip to content

Instantly share code, notes, and snippets.

View fawazm30's full-sized avatar
🎯
Focusing

Fawaz M fawazm30

🎯
Focusing
View GitHub Profile
/*
- Create a card UI similar to the image using HTML and CSS
- It doesn't need to be an exact replica
- You can use any name, photo, URL
*/
* {
font-family: Arial, sans-serif;
// You have an array.
// An item of the array has `name`, a string, and `types`, an array of strings.
// The length of `types` in a record can be 1-99 (not always 1-2)
// e.g. [{ name: "bulbasaur", types: ["grass", "poison"] }]
const pokes = getPokes();
console.log("Pokes", pokes);
// Problem 1: Filter by type
// - Populate `answer1` with Pokemon names that contain the type string
const type = "grass";