From ee778d6eea54935fd05022e0ba8c49456003381a Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:48:24 +0100 Subject: unslug ko: move --- files/ko/glossary/boolean/index.html | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 files/ko/glossary/boolean/index.html (limited to 'files/ko/glossary/boolean') diff --git a/files/ko/glossary/boolean/index.html b/files/ko/glossary/boolean/index.html new file mode 100644 index 0000000000..9d63373163 --- /dev/null +++ b/files/ko/glossary/boolean/index.html @@ -0,0 +1,54 @@ +--- +title: 불린 +slug: Glossary/불린 +tags: + - 데이터 타입 + - 부울 + - 불린 + - 자료 유형 + - 자바스크립트 + - 프로그래밍 언어 +translation_of: Glossary/Boolean +--- +

컴퓨터 과학에서, 불린(boolean)은 논리적인 데이터 유형이다. 불린은 참(true) 혹은 거짓(false) 값만을 가질 수 있다. 자바스크립트에서 불린 조건은 어떤 코드 부문이 실행되어야 할 지(예를 들어 if 절 안에서) 또는 어떤 코드 부문을 반복해야 할지(예를 들어 for 문 안에서) 결정하는 데 쓰인다.

+ +

아래는 불린이 쓰일 수 있는 예시를 보여주는 유사코드이다(실행 가능한 코드가 아니다).

+ +
***JavaScript if Statement***
+if(boolean conditional) {
+   //coding
+}
+
+if(true) {
+  console.log("boolean conditional resolved to true");
+} else {
+    console.log("boolean conditional resolved to false");
+  }
+
+
+
+***JavaScript for Loop***
+for(control variable; boolean conditional; counter) {
+  //coding
+}
+
+for(var i=0; i<4; i++) {
+  console.log("I print only when the boolean conditional is true");
+}
+ +

불린(Boolean)이란 이름은 기호 논리학 분야의 선구자인 영국 수학자 {{interwiki("wikipedia", "조지 불")}}의 이름을 따 만들어졌다.

+ +

더 알아보기

+ +

일반적인 지식

+ + + +

참고문헌

+ + -- cgit v1.2.3-54-g00ecf