---
# System prepended metadata

title: 廖 interview

---

# 廖 interview

## Q1:
- [設計稿](https://xd.adobe.com/view/9220a5db-4d00-4f83-8d8a-8c54b42b3578-c773/specs/)
- https://codepen.io/pen?template=XWPzMQr


## Q2: 
1. 取出 (phoneNumbers) type 為 work 的電話號碼
2. 取出工作經歷(employmentHistory)中，任職最久的一份工作
```javascript=
const info = `{
  "name": "John Doe",
  "age": 30,
  "email": "johndoe@example.com",
  "address": {
    "street": "123 Main St",
    "city": "Anytown",
    "state": "CA",
    "zip": "12345"
  },
  "phoneNumbers": [
    {
      "type": "home",
      "number": "555-555-1234"
    },
    {
      "type": "work",
      "number": "555-555-5678"
    }
  ],
  "employmentHistory": [
    {
      "employer": "ABC Inc.",
      "position": "Software Engineer",
      "startDate": "2014-01-01",
      "endDate": "2015-12-31"
    },
    {
      "employer": "DDD Inc.",
      "position": "Software Engineer",
      "startDate": "2015-01-01",
      "endDate": "2017-12-31"
    },
    {
      "employer": "XYZ Corp.",
      "position": "Senior Software Engineer",
      "startDate": "2018-01-01",
      "endDate": null
    }
  ]
}`;
```