chore(i18n,learn): processed translations (#55161)

This commit is contained in:
freeCodeCamp's Camper Bot
2024-06-11 22:32:29 +05:30
committed by GitHub
parent 1a5c86d4dc
commit f0386106d4
4999 changed files with 93587 additions and 22076 deletions

View File

@@ -1,6 +1,6 @@
---
id: 587d7b7d367417b2b2512b1c
title: Check if an Object has a Property
title: 객체에 속성이 있는지 확인하기
challengeType: 1
forumTopicId: 301155
dashedName: check-if-an-object-has-a-property
@@ -8,22 +8,22 @@ dashedName: check-if-an-object-has-a-property
# --description--
Now we can add, modify, and remove keys from objects. But what if we just wanted to know if an object has a specific property? JavaScript provides us with two different ways to do this. One uses the `hasOwnProperty()` method and the other uses the `in` keyword. If we have an object `users` with a property of `Alan`, we could check for its presence in either of the following ways:
이제 객체에 키를 추가하고 수정하고 제거할 수 있습니다. 그러나 객체가 특정 속성을 가지고 있는지 알고 싶은 경우에는 어떻게 할까요? 이를 위해서 자바스크립트는 두 가지 다른 방법을 제공합니다. 하나는 `hasOwnProperty()` 메서드를 사용하고 다른 하나는 `in` 키워드를 사용합니다. `Alan`이라는 속성을 가진 `users` 객체가 있다면 다음 두 가지 방법 중 하나로 그 존재 여부를 확인할 수 있습니다.
```js
users.hasOwnProperty('Alan');
'Alan' in users;
```
Both of these would return `true`.
두 방법 모두 `true`를 반환합니다.
# --instructions--
Finish writing the function so that it returns `true` if the object passed to it contains all four names, `Alan`, `Jeff`, `Sarah` and `Ryan` and returns `false` otherwise.
함수를 완성하여 전달된 객체에 모든 이름 `Alan`, `Jeff`, `Sarah`, `Ryan`이 모두 포함되어 있는 경우 `true`를 반환하고 그렇지 않으면 `false`를 반환합니다.
# --hints--
The `users` object should not be accessed directly
`users` 객체에는 직접 액세스하지 않아야 합니다.
```js
@@ -31,7 +31,7 @@ assert(__helpers.removeJSComments(code).match(/users/gm).length <= 2)
```
The `users` object should only contain the keys `Alan`, `Jeff`, `Sarah`, and `Ryan`
`users` 객체는 오직 키 `Alan`, `Jeff`, `Sarah`, `Ryan`만을 포함해야 합니다.
```js
assert(
@@ -43,13 +43,13 @@ assert(
);
```
The function `isEveryoneHere` should return `true` if `Alan`, `Jeff`, `Sarah`, and `Ryan` are properties on the object passed to it.
함수 `isEveryoneHere`는 전달된 객체에 `Alan`, `Jeff`, `Sarah`, `Ryan`이라는 속성이 있는 경우 `true`를 반환해야 합니다.
```js
assert(isEveryoneHere(users) === true);
```
The function `isEveryoneHere` should return `false` if `Alan` is not a property on the object passed to it.
함수 `isEveryoneHere`는 전달된 객체에 `Alan`이 속성으로 없는 경우 `false`를 반환해야 합니다.
```js
assert(
@@ -60,7 +60,7 @@ assert(
);
```
The function `isEveryoneHere` should return `false` if `Jeff` is not a property on the object passed to it.
함수 `isEveryoneHere`는 전달된 객체에 `Jeff`가 속성으로 없는 경우 `false`를 반환해야 합니다.
```js
assert(
@@ -71,7 +71,7 @@ assert(
);
```
The function `isEveryoneHere` should return `false` if `Sarah` is not a property on the object passed to it.
함수 `isEveryoneHere`는 전달된 객체에 `Sarah`가 속성으로 없는 경우 `false`를 반환해야 합니다.
```js
assert(
@@ -82,7 +82,7 @@ assert(
);
```
The function `isEveryoneHere` should return `false` if `Ryan` is not a property on the object passed to it.
함수 `isEveryoneHere`는 전달된 객체에 `Ryan`이 속성으로 없는 경우 `false`를 반환해야 합니다.
```js
assert(