From cc28b31f501b06acb38aedcd4e3f5029ec838699 Mon Sep 17 00:00:00 2001 From: 3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com> Date: Wed, 2 Feb 2022 00:37:06 +0900 Subject: remove class 2 (#3923) --- .../web/javascript/reference/operators/equality/index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'files/ko/web/javascript/reference/operators/equality') diff --git a/files/ko/web/javascript/reference/operators/equality/index.html b/files/ko/web/javascript/reference/operators/equality/index.html index a31ffca59c..eb323a072d 100644 --- a/files/ko/web/javascript/reference/operators/equality/index.html +++ b/files/ko/web/javascript/reference/operators/equality/index.html @@ -11,7 +11,7 @@ translation_of: Web/JavaScript/Reference/Operators/Equality
x == y +x == y상세 설명
@@ -43,12 +43,12 @@ translation_of: Web/JavaScript/Reference/Operators/Equality타입변환 없이 비교
-1 == 1; // true +1 == 1; // true "hello" == "hello"; // true타입변환을 이용한 비교
-"1" == 1; // true +"1" == 1; // true 1 == "1"; // true 0 == false; // true 0 == null; // false @@ -64,7 +64,7 @@ number1 == number2; // false객체들 간의 비교
-const object1 = {"key": "value"} +const object1 = {"key": "value"} const object2 = {"key": "value"}; object1 == object2 // false @@ -74,7 +74,7 @@ object2 == object2 // true-
new String()을 통해 생성된 문자열들은 객체입니다. 이 객체중 하나를 문자열과 비교한다면,String객체가 문자열로 변환된 후 비교될 것입니다. 그러나 두개의 피연산자 모두String객체라면, 객체로써 비교가 이루어지기 때문에 같은 값으로 취급될려면 같은 객체를 참조하고 있어야 합니다:const string1 = "hello"; +const string1 = "hello"; const string2 = String("hello"); const string3 = new String("hello"); const string4 = new String("hello"); @@ -87,7 +87,7 @@ console.log(string4 == string4); // trueComparing Dates and strings
-const d = new Date('December 17, 1995 03:24:00'); +const d = new Date('December 17, 1995 03:24:00'); const s = d.toString(); // for example: "Sun Dec 17 1995 03:24:00 GMT-0800 (Pacific Standard Time)" console.log(d == s); //true-- cgit v1.2.3-54-g00ecf