Skip to content
Open
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
5 changes: 3 additions & 2 deletions src/groceries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
function createGroceries(): string[] {
// write your code here...

return []; // replace empty array with what you see is fit
let groceries: string[] = ["Eggs", "Bread", "Pepper", "Coconut", "Chocolate", "Chicken"]
return groceries; // replace empty array with what you see is fit
}

// Step 2:
// Write a getSecondGroceryItem function that returns the second grocery item from `groceries` argument
function getSecondGroceryItem(groceries: string[]): string {
// write your code here...

return ""; // replace empty string with what you see is fit
return groceries[2]; // replace empty string with what you see is fit
}

// Step 3:
Expand Down