-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ko] SharedArrayBuffer.prototype.byteLength 신규 추가 외 (#22395)
* [ko] SharedArrayBuffer.prototype.byteLength 신규 추가 외 - SharedArrayBuffer.prototype.byteLength 신규 추가 - Set.prototype.add() 최신화 - Set.prototype.clear() 최신화 * lint 에러 수정
- Loading branch information
Showing
3 changed files
with
66 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 19 additions & 9 deletions
28
files/ko/web/javascript/reference/global_objects/set/clear/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...o/web/javascript/reference/global_objects/sharedarraybuffer/bytelength/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: SharedArrayBuffer.prototype.byteLength | ||
slug: Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/byteLength | ||
l10n: | ||
sourceCommit: c2445ce1dc3a0170e2fbfdbee10e18a7455c2282 | ||
--- | ||
|
||
{{JSRef}} | ||
|
||
{{jsxref("SharedArrayBuffer")}} 인스턴스의 **`byteLength`** 접근자 속성은 이 `SharedArrayBuffer`의 바이트 단위 길이를 반환합니다. | ||
|
||
{{EmbedInteractiveExample("pages/js/sharedarraybuffer-bytelength.html", "shorter")}} | ||
|
||
## 설명 | ||
|
||
`byteLength` 속성은 접근자 속성으로 설정 접근자 함수는 `undefined`입니다. 즉, 이 속성은 읽기 전용입니다. 이 값은 공유 배열이 생성될때 값이 설정되며, 변경할 수 없습니다. | ||
|
||
## 예제 | ||
|
||
### byteLength 사용하기 | ||
|
||
```js | ||
const sab = new SharedArrayBuffer(1024); | ||
sab.byteLength; // 1024 | ||
``` | ||
|
||
## 명세서 | ||
|
||
{{Specifications}} | ||
|
||
## 브라우저 호환성 | ||
|
||
{{Compat}} | ||
|
||
## 같이 보기 | ||
|
||
- {{jsxref("SharedArrayBuffer")}} |