Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
d00d3a6
added index.html from week 1
jkavanagh00 Oct 20, 2025
80783a0
added styles.css from week 1
jkavanagh00 Oct 20, 2025
38443d6
added source.js from week 1
jkavanagh00 Oct 20, 2025
131b658
added apples.txt
jkavanagh00 Oct 20, 2025
896bd8e
added bananas-file.txt and oranges-file.txt
jkavanagh00 Oct 20, 2025
9918639
updated text of apples-file.txt
jkavanagh00 Oct 20, 2025
e426e70
moved fruit-related txt files into session-playground
jkavanagh00 Oct 20, 2025
e35bcac
and colors.txt
jkavanagh00 Oct 21, 2025
628546d
Add Blue color to colors.txt
jkavanagh00 Oct 21, 2025
3a67d1d
added orange to colors.txt
jkavanagh00 Oct 21, 2025
13c884d
Merge branch 'git-week1/exercise-4/jessicabk' of https://github.com/j…
jkavanagh00 Oct 21, 2025
40f9663
added movies.txt
jkavanagh00 Oct 21, 2025
c280cbe
merging exercise-3
jkavanagh00 Oct 21, 2025
31b7d7a
merged exercise-4
jkavanagh00 Oct 21, 2025
dcd8e94
merged exercise-5
jkavanagh00 Oct 21, 2025
64d7e99
added list of the prompts I will use to create the pages
jkavanagh00 Oct 29, 2025
472fbcd
implemented prompt 1
jkavanagh00 Oct 29, 2025
0194a5b
implemented prompt 2
jkavanagh00 Oct 29, 2025
683ac9d
implemented prompt 3
jkavanagh00 Oct 29, 2025
9569cc6
implemented prompt 4
jkavanagh00 Oct 29, 2025
60215be
implemented prompt 5
jkavanagh00 Oct 29, 2025
26de599
implemented prompt 6
jkavanagh00 Oct 29, 2025
cfd4a0a
implemented prompt 7
jkavanagh00 Oct 29, 2025
898c03e
implemented prompt 8
jkavanagh00 Oct 29, 2025
a75e3a4
implemented prompt 1a
jkavanagh00 Oct 29, 2025
b670e7d
implemented prompt 2a
jkavanagh00 Oct 29, 2025
4bb7a77
implemented prompt 3a
jkavanagh00 Oct 29, 2025
3684bc1
implemented prompt 4a
jkavanagh00 Oct 29, 2025
c8d835a
implemented prompt 5a
jkavanagh00 Oct 29, 2025
0000988
implemented prompt 6a
jkavanagh00 Oct 29, 2025
7829f1d
implemented prompt 7a
jkavanagh00 Oct 29, 2025
98badbe
implemented prompt 8a
jkavanagh00 Oct 29, 2025
3c31b02
created third html and renamed documents to conform to commit message…
jkavanagh00 Oct 29, 2025
02f3050
implemented prompt 1b
jkavanagh00 Oct 29, 2025
450bbc6
implemented prompt 2b
jkavanagh00 Oct 29, 2025
15bc882
implemented prompt 3b
jkavanagh00 Oct 29, 2025
792f757
implemented prompt 4b
jkavanagh00 Oct 29, 2025
32f807b
implemented prompt 5b
jkavanagh00 Oct 29, 2025
795d3f8
implemented prompt 6b
jkavanagh00 Oct 29, 2025
58291c6
implemented prompt 7b
jkavanagh00 Oct 29, 2025
9c27e9a
implemented prompt 8b
jkavanagh00 Oct 29, 2025
c71e336
added final reflections on exercise
jkavanagh00 Oct 29, 2025
636a7c7
added week 1 assignments
jkavanagh00 Nov 3, 2025
99f4eb0
updated after feedback
jkavanagh00 Nov 4, 2025
cb72a12
updated after second round of feedback
jkavanagh00 Nov 5, 2025
e620977
removed return statement from ripOffDetector
jkavanagh00 Nov 5, 2025
83b1545
Merge pull request #2 from jkavanagh00/intro-to-javascript-week-1
jkavanagh00 Nov 5, 2025
cdff282
added getFullName.js
jkavanagh00 Nov 11, 2025
35978c9
improved readability of getFullName.js
jkavanagh00 Nov 11, 2025
b7d4afd
added getWeekday.js
jkavanagh00 Nov 11, 2025
fe5f0c0
added clothingPicker.js
jkavanagh00 Nov 11, 2025
95fb94e
added studentManager.js
jkavanagh00 Nov 11, 2025
c638fa6
refactored studentManager.js to meet all requirements
jkavanagh00 Nov 11, 2025
5e52652
added candyHelper.js
jkavanagh00 Nov 11, 2025
29f6dd8
removed console log tests from files
jkavanagh00 Nov 11, 2025
a9bcb06
refactored getFullName.js to simplify and stay within requirements
jkavanagh00 Nov 12, 2025
744d6a3
refactored studentManager.js to improve if/else logic, remove ternary…
jkavanagh00 Nov 12, 2025
78554a4
refactored clothingPicker.js to use if/else control flow instead of n…
jkavanagh00 Nov 12, 2025
64e4462
simplified getWeekday.js
jkavanagh00 Nov 12, 2025
7fa17b1
simplified candyHelper.js
jkavanagh00 Nov 12, 2025
2df7949
added itemArrayRemoval.js
jkavanagh00 Nov 13, 2025
25f9f59
added travelCalculator.js
jkavanagh00 Nov 13, 2025
4b910db
added seriesDuration.js
jkavanagh00 Nov 14, 2025
4d46f7e
added NOnoN0nOYes.js
jkavanagh00 Nov 14, 2025
9022723
added CactusIO-interactive.js
jkavanagh00 Nov 14, 2025
ef5d573
improved variable naming
jkavanagh00 Nov 16, 2025
729df3a
added jobMatching1.js
jkavanagh00 Nov 16, 2025
8d96063
changed kata.js to arrayPractice.js
jkavanagh00 Nov 16, 2025
01ff2c3
replaced kata.js with jobMatching.js
jkavanagh00 Nov 16, 2025
6421f54
added favourites to note taker
jkavanagh00 Nov 16, 2025
e807aeb
added jobMatching2.js
jkavanagh00 Nov 16, 2025
fae66a6
added unfinished-loop.js
jkavanagh00 Nov 16, 2025
b3c32f4
refactored code after review
jkavanagh00 Nov 22, 2025
fcbc43b
removed leftover console.log tests
jkavanagh00 Nov 22, 2025
0edf6b5
Merge pull request #4 from jkavanagh00/intro-to-javascript-week-3
jkavanagh00 Nov 26, 2025
771d461
Merge pull request #1 from jkavanagh00/intro-to-ai
jkavanagh00 Nov 26, 2025
7c9c4e6
added kata solutions
jkavanagh00 Jan 5, 2026
b8bf6b2
added index.html to HogwartsHouseGenerator
jkavanagh00 Jan 5, 2026
7649ccb
added HYFbay files (all logic is contained within main.js, including …
jkavanagh00 Jan 5, 2026
cd120d0
refactored renderProducts() to display data in table form; added func…
jkavanagh00 Jan 5, 2026
b9c9486
removed length checking from name input
jkavanagh00 Jan 5, 2026
8ef0768
refactored assignHouse() to display house names in bold
jkavanagh00 Jan 5, 2026
30182ce
created convenience variable for text to improve readability
jkavanagh00 Jan 5, 2026
d540a56
refactored formatPrice() to use the addition assignment operator
jkavanagh00 Jan 5, 2026
02e6b37
Merge pull request #8 from jkavanagh00/intro-to-frontend
jkavanagh00 Jan 15, 2026
63bfaed
Merge branch 'HackYourFuture-CPH:main' into main
jkavanagh00 Feb 18, 2026
621e1a3
added teas data
jkavanagh00 Mar 8, 2026
81ff648
added exercise 1
jkavanagh00 Mar 8, 2026
718b381
added exercise 2
jkavanagh00 Mar 8, 2026
c2ad27c
added exercise 3
jkavanagh00 Mar 8, 2026
8091681
added exercise 4
jkavanagh00 Mar 8, 2026
8199df0
added exercise 5
jkavanagh00 Mar 8, 2026
1809901
added exercise 6
jkavanagh00 Mar 8, 2026
bc82241
completed exercise 6
jkavanagh00 Mar 8, 2026
8e03de2
added exercise 7
jkavanagh00 Mar 8, 2026
5b69d5d
added exercise 8
jkavanagh00 Mar 8, 2026
31f1eb0
added exercise 9
jkavanagh00 Mar 8, 2026
d41cbbc
added exercise 10
jkavanagh00 Mar 8, 2026
cf88ae0
added exercise 11
jkavanagh00 Mar 8, 2026
96c9305
added exercise 12
jkavanagh00 Mar 8, 2026
2ac3d55
added exercise 12
jkavanagh00 Mar 8, 2026
9627262
fixed exercise 12
jkavanagh00 Mar 8, 2026
ea1f26a
added exercise 13
jkavanagh00 Mar 8, 2026
321d70d
added exercise 17
jkavanagh00 Mar 8, 2026
5907c60
moved in-class exercises to their own folder
jkavanagh00 Mar 8, 2026
711e5ab
added homework 1
jkavanagh00 Mar 8, 2026
cecb0a3
added homework 2
jkavanagh00 Mar 8, 2026
bbfe1af
added homework 3
jkavanagh00 Mar 8, 2026
ed7496f
corrected homework 3 to properly filter out all teas with stockCount …
jkavanagh00 Mar 8, 2026
a8ea00d
added homework 4
jkavanagh00 Mar 8, 2026
b9204ae
changed homework four to correctly list all teas in each category rat…
jkavanagh00 Mar 8, 2026
74ee8f9
added homework 5
jkavanagh00 Mar 8, 2026
fc6cab6
added homework 6
jkavanagh00 Mar 8, 2026
7f9169a
added homework 7
jkavanagh00 Mar 8, 2026
9176cec
restored missing console log statements and cleaned up files
jkavanagh00 Mar 8, 2026
b4b92f6
changed filenames to conform with submission requirements
jkavanagh00 Mar 8, 2026
c5c70dd
improved styling in line with feedback
jkavanagh00 Mar 13, 2026
90dabb5
fixed calculation of average price to properly return averagePricePer…
jkavanagh00 Mar 13, 2026
4ca9ee9
refactored searchTeas to alphabetically sort the list of teas before …
jkavanagh00 Mar 13, 2026
1ca031b
Merge pull request #13 from jkavanagh00/advanced-javascript/week-1/je…
jkavanagh00 Mar 15, 2026
c022cc7
add week 1 assignment: task management database
jkavanagh00 Apr 13, 2026
31a8ee2
remove exercise5.js accidentally committed to wrong branch
jkavanagh00 Apr 13, 2026
1caa1cf
Merge pull request #16 from jkavanagh00/databases2/week1
jkavanagh00 Apr 19, 2026
2a0c66a
add homework assignment for node-week1
jkavanagh00 Apr 28, 2026
6ec898b
add entire backend structure from week1 with GET snippets/ replaced b…
jkavanagh00 May 3, 2026
5cbb005
refactor vulnerable GET endpoint to protect against SQL injection
jkavanagh00 May 3, 2026
eb9b1e7
add txt file explaining design choices for exercise 1
jkavanagh00 May 3, 2026
899dd0c
add zod schemas, simple GET/:id endpoint and PUT/:id endpoint with zo…
jkavanagh00 May 3, 2026
9f4fbaf
add usersRouter to app.js
jkavanagh00 May 3, 2026
8a1fd12
add zod validation to GET/:id route
jkavanagh00 May 5, 2026
be88cfb
add POST route for user creation
jkavanagh00 May 5, 2026
f475aa8
update createUserSchema to with min length check to prevent empty nam…
jkavanagh00 May 5, 2026
5e32715
add GET route which searches users by name and email
jkavanagh00 May 5, 2026
0d8808b
add DELETE endpoint to delete users by id
jkavanagh00 May 5, 2026
ed64f4d
updated SQL to create snippet_tags junction table and insert seed data
jkavanagh00 May 5, 2026
52260e2
refactor GET snippets/ to combine handling for returning all snippets…
jkavanagh00 May 5, 2026
a7f7657
refactor GET snippets?tags= to preserve many-to-many relationship bet…
jkavanagh00 May 5, 2026
af262f2
add zod input validation to snippets routes
jkavanagh00 May 5, 2026
ee5e04f
add missing status property
jkavanagh00 May 7, 2026
cb3487a
add yaml openapi documentation
jkavanagh00 May 7, 2026
43a6096
set up swagger documentation in app.js
jkavanagh00 May 7, 2026
805387e
update dependencies
jkavanagh00 May 7, 2026
c1b0f80
added postman collection for snippets route
jkavanagh00 May 7, 2026
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
23 changes: 23 additions & 0 deletions courses/backend/advanced-javascript/week1/data/teas.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

teas.forEach(tea => console.log(tea.name));
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-10.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

const organicTeasInStock = teas.filter(tea => tea.inStock).filter(tea => tea.organic);
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-11.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

const greenTeaNames = teas.filter(tea => tea.type === "green").map(tea => tea.name);
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-12.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

const organicTeaStrings = teas.filter(tea => tea.organic).map(tea => `${tea.name} - ${tea.pricePerGram * 100} DKK/100g`);
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-13.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

const japaneseTeasByPrice = teas.filter(tea => tea.origin === "Japan").sort((a, b) => a.pricePerGram - b.pricePerGram);
25 changes: 25 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-17.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// filterTeas(teas, { organic: true });
// // Returns all organic teas

// filterTeas(teas, { origin: "Japan" });
// // Returns all Japanese teas

// filterTeas(teas, { organic: true, origin: "Japan" });
// // Returns organic Japanese teas

// filterTeas(teas, { type: "green", inStock: true });
// // Returns green teas that are in stock

import { teas } from "./data/teas.js";

function filterTeas (teas, obj) {
const entries = Object.entries(obj);
entries.forEach((entry) => {
const key = entry[0];
const value = entry[1];
teas = teas.filter(tea => tea[key] === value);
})
return teas;
}

console.log(filterTeas(teas, { type: "green", inStock: true }));
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

teas.forEach(tea => console.log(`${tea.name} (${tea.origin})`));
7 changes: 7 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { teas } from "./data/teas.js";

let organicCount = 0;

teas.forEach(tea => {if (tea.organic) organicCount++});

console.log(organicCount);
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

const teaNames = teas.map(tea => tea.name);
5 changes: 5 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-5.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "./data/teas.js";

const teaPrices = teas.map(tea => tea.pricePerGram * 100);

console.log(teaPrices);
5 changes: 5 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "./data/teas.js";

const displayStrings = teas.map(tea => `${tea.name} - ${tea.pricePerGram * 100} DKK/100g`);

console.log(displayStrings);
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-7.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

const organicTeas = teas.filter(tea => tea.organic);
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-8.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

const japaneseTeas = teas.filter(tea => tea.origin === "Japan");
3 changes: 3 additions & 0 deletions courses/backend/advanced-javascript/week1/exercise-9.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "./data/teas.js";

const highCaffeineTeas = teas.filter(tea => tea.caffeineLevel === "high");
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { teas } from "../data/teas.js";

const result = teas
.filter(tea => tea.caffeineLevel !== 'none')
.map(tea => tea.name.toUpperCase());

console.log(result);
19 changes: 19 additions & 0 deletions courses/backend/advanced-javascript/week1/homework/exercise2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { teas } from "../data/teas.js";

function inventoryReport(teas) {
const totalTeas = teas.length;
const inStock = teas.filter(tea => tea.inStock).length;
const outOfStock = totalTeas - inStock;
const totalInventoryValue = teas.map(tea => tea.pricePerGram * tea.stockCount).reduce((x, y) => x + y, 0);
const totalPricePerGram = teas.map(tea => tea.pricePerGram).reduce((x, y) => x + y, 0);
const averagePricePerGram = Number((totalPricePerGram / totalTeas).toFixed(2));
return {
totalTeas,
inStock,
outOfStock,
totalInventoryValue,
averagePricePerGram
}
};

console.log(inventoryReport(teas));
12 changes: 12 additions & 0 deletions courses/backend/advanced-javascript/week1/homework/exercise3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { teas } from "../data/teas.js";

function lowStockAlert(teas) {
return teas.filter(tea => tea.stockCount < 50).map(tea => {
return {
name: tea.name,
stock: tea.stockCount
}
}).sort((a, b) => a.stock - b.stock);
}

console.log(lowStockAlert(teas));
16 changes: 16 additions & 0 deletions courses/backend/advanced-javascript/week1/homework/exercise4.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { teas } from "../data/teas.js";

function teasByOrigin(teas) {
let origins = {};
teas.forEach(tea => {
const origin = tea.origin;
if (!origins[origin]) {
origins[origin] = [tea.name];
} else {
origins[origin].push(tea.name);
}
});
return origins;
}

console.log(teasByOrigin(teas));
19 changes: 19 additions & 0 deletions courses/backend/advanced-javascript/week1/homework/exercise5.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { teas } from "../data/teas.js";

function searchTeas(teas, query) {
const queryLower = query.toLowerCase();
// Return teas where the name contains the query (case-insensitive)
const filtered = teas.filter(tea => tea.name.toLowerCase().includes(queryLower));
// Return just the names, sorted alphabetically
const names = filtered.map(tea => tea.name).sort();
return names;
}

console.log(searchTeas(teas, "earl"));
// Returns: [ 'Earl Grey', 'Jasmine Pearl' ]

console.log(searchTeas(teas, "dragon"));
// Returns: ["Dragon Well"]

console.log(searchTeas(teas, "ch"));
// Returns: ["Sencha", "Chamomile", "Matcha", "Lapsang Souchong", "Genmaicha"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const totalValue = teas.reduce((sum, tea) => sum + tea.pricePerGram * tea.stockCount, 0);

console.log("Total inventory value:", totalValue);
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { teas } from "../data/teas.js";

const countByType = teas.reduce((counts, tea) => {
counts[tea.type] ? counts[tea.type]++ : counts[tea.type] = 1;
return counts;
}, {});

console.log(countByType);
// Expected: { green: 6, black: 6, herbal: 4, oolong: 2, white: 2 }
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "../data/teas.js";

teas.forEach(tea => console.log(tea.name));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const organicTeasInStock = teas.filter(tea => tea.inStock).filter(tea => tea.organic);

console.log(organicTeasInStock);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const greenTeaNames = teas.filter(tea => tea.type === "green").map(tea => tea.name);

console.log(greenTeaNames);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const organicTeaStrings = teas.filter(tea => tea.organic).map(tea => `${tea.name} - ${tea.pricePerGram * 100} DKK/100g`);

console.log(organicTeaStrings);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const japaneseTeasByPrice = teas.filter(tea => tea.origin === "Japan").sort((a, b) => a.pricePerGram - b.pricePerGram);

console.log(japaneseTeasByPrice);
23 changes: 23 additions & 0 deletions courses/backend/advanced-javascript/week1/in-class/exercise17.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { teas } from "../data/teas.js";

function filterTeas (teas, obj) {
const entries = Object.entries(obj);
entries.forEach((entry) => {
const key = entry[0];
const value = entry[1];
teas = teas.filter(tea => tea[key] === value);
})
return teas;
}

console.log('Organic teas: ', filterTeas(teas, { organic: true }))
// Returns all organic teas

console.log('Japanese teas: ', filterTeas(teas, { origin: "Japan" }))
// Returns all Japanese teas

console.log('Organic Japanese teas: ', filterTeas(teas, { organic: true, origin: "Japan" }))
// Returns organic Japanese teas

console.log('Green teas in stock: ', filterTeas(teas, { type: "green", inStock: true }))
// Returns green teas that are in stock);
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { teas } from "../data/teas.js";

teas.forEach(tea => console.log(`${tea.name} (${tea.origin})`));
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { teas } from "../data/teas.js";

let organicCount = 0;

teas.forEach(tea => {if (tea.organic) organicCount++});

console.log(organicCount);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const teaNames = teas.map(tea => tea.name);

console.log(teaNames);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const teaPrices = teas.map(tea => tea.pricePerGram * 100);

console.log(teaPrices);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const displayStrings = teas.map(tea => `${tea.name} - ${tea.pricePerGram * 100} DKK/100g`);

console.log(displayStrings);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const organicTeas = teas.filter(tea => tea.organic);

console.log(organicTeas);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const japaneseTeas = teas.filter(tea => tea.origin === "Japan");

console.log(japaneseTeas);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { teas } from "../data/teas.js";

const highCaffeineTeas = teas.filter(tea => tea.caffeineLevel === "high");

console.log(highCaffeineTeas);
Loading