---
# System prepended metadata

title: 'https://hackmd.io/@7ou6tNnWQym'

---


### array
## Q1.
### map
* Convert all names to uppercase and print them.
* you can use .uppercase method to uppercase the name.

```

let upperCaseName = names.map((item)=>item.toUpperCase())
console.log(upperCaseName)

```

<br>

## Q2.
### filter
* Print the names of people that include the letter "a"

```

let includeA = names.filter((item)=>item.includes('a'))
console.log(includeA)

```

<br>


## Q3.
### find
* Find the person whose full name length is 20 characters or more.
```

console.log(names.find(item=>item.length>=20))

```

<br>


## Q4.
### findIndexOF
* Find the index of the person whose full name is 20 characters or more.

```

console.log(names.findIndex(item=>item.length>=20))


```

------------
### object

## Q1.
```
const student = {
  id: 101,
  name: "Minho",
  grade: "A",
  school: "K-High",
  greet() {
    const { name } = this;
    console.log(`Hello, my name is ${name}!`);
  }
};

student.greet();
```
<br>

## Q2.
```
const student = {
  id: 101,
  name: "Minho",
  grade: "A",
  school: "K-High"
};

const updatedStudent = { ...student, grade: "B" };

console.log(updatedStudent);
```
