{"id":19248086,"url":"https://github.com/luanarchive/Airbnb-replica","last_synced_at":"2026-06-28T18:30:16.414Z","repository":{"id":223089088,"uuid":"759274575","full_name":"LuaanNguyen/Airbnb-replica","owner":"LuaanNguyen","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-18T06:01:26.000Z","size":9310,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T05:49:23.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuaanNguyen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-18T05:58:06.000Z","updated_at":"2024-03-05T22:01:21.000Z","dependencies_parsed_at":"2024-02-18T08:35:19.430Z","dependency_job_id":null,"html_url":"https://github.com/LuaanNguyen/Airbnb-replica","commit_stats":null,"previous_names":["luaannguyen/airbnb-replica"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuaanNguyen%2FAirbnb-replica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuaanNguyen%2FAirbnb-replica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuaanNguyen%2FAirbnb-replica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuaanNguyen%2FAirbnb-replica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuaanNguyen","download_url":"https://codeload.github.com/LuaanNguyen/Airbnb-replica/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240339583,"owners_count":19785957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T18:06:23.070Z","updated_at":"2026-06-28T18:30:16.352Z","avatar_url":"https://github.com/LuaanNguyen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Airbnb 🛅\n\n## Contents\n- Introduction\n- Starter Code\n- Deliverable\n- LevelUp! (Extra Credit)\n- Extra Help (If Needed)\n\n## Introduction\n\nYou'll be working with the Airbnb development team to prototype a new and improved search and filter experience. Other developers on the team have written code that will add search results to the webpage. Your task is to make sure the *correct search results* are being added to the page based on the search term and filtering options. \n\nThe final user experience should function [like this](https://i.imgur.com/xewHeDQ.mp4).\n\n## Starter Code\n\nThere is existing code in `provided.js` that will implement the search feature and show results to the user. This code is wired to call the three functions included in `script.js`. The functions you complete in `script.js` will filter the search results based on the user's query and filtering options.\n\nNote that you are writing a small bit of code that fits into a larger whole. This is oftentimes how the real world works. You won't always be familiar with the majority of code in a large project. The key is to understand how your piece fits in.  \n\n\u003e **🗒 Note:** The only file you'll need to edit to complete these tasks is `script.js`.\n\n## Deliverable\n\nBelow are the two filtering functions you'll need to complete, as well as a Level Up you can try (number three)!\n\n### 1. **`filterByCity(targetCity, listingCityArray)`**\n\n| Parameter | Type | Example Argument |\n| ---- | ---- | ---- |\n| `targetCity` | String | `\"San Diego\"` |\n| `listingCityArray` | Array | `[\"Lake Tahoe\", \"San Diego\", \"Chicago\"]` |\n\nThis function should return an array with each index from `listingCityArray` where the city matches `targetCity` **ignoring capitalization/case**.\n\n\u003chr\u003e\n\n### 2. **`filterByPrice(minPrice, maxPrice, listingPriceArray)`**\n   \n| Parameter | Type | Example Argument |\n| ---- | ---- | ---- |\n| `minPrice` | Number | `100` |\n| `maxPrice` | Number | `300` |\n| `listingPriceArray` | Array | `[132, 430, 73, 198]` |\n\nThis function should return an array with each index from `listingPriceArray` where the price is between the minimum and maximum price specified by the user. \n\n\n## LevelUp! (Extra Credit)\nFeel like you want to keep going? Tackle the `filterByTypes` function to snag some extra credit:\n\n### 3. **`filterByTypes(targetTypes, listingTypeArray)`**\n\n| Parameter | Type | Example Argument |\n| ---- | ---- | ---- |\n| `targetTypes` | Array | `[\"entire-place\", \"private-room\"]` |\n| `listingTypeArray` | Array | `[\"entire-place\", \"private-room\", \"shared-room\"]` |\n\nThis function should return an array with each index from `listingTypeArray` where the type of listing matches *ANY* of the `targetTypes`.\n\n\n## Extra Help (If Needed)\nYou have everything you need to get started and complete this task. You should try it on your own first! Use your decomposition skills to break each task down into smaller steps and don't hesitate to practice your Google Fu. If you're still having trouble, check out `HINTS.md` for some extra help.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluanarchive%2FAirbnb-replica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluanarchive%2FAirbnb-replica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluanarchive%2FAirbnb-replica/lists"}