DOM BOM Javascript Data Type 프론트엔드 상태 관리 Event 웹의 동작 AJAX JSON Restful Promise Javascript Object Prototype & Mixin Execution Context Scope Closure 문서:https://www.ecma-international.org/publications-and-standards/standards/ecma-262/ ECMA-262 - Ecma International ECMAScript® 2020 language specification, 11th edition - ECMAScript is a programming language based on several technologies like JavaScri..

일반적으로 우리가 아는 3항 연산자는 이렇게 씁니다. boolean condition = 4 > 3; int x = condition ? 5 : 0; 일부 글에서 3항 연산자가 boolean condition = 4 > 3; int x; if(condition) { x = 5; } else { x = 0; } 이렇게 if else 로 바꿀 수 있다고 하는데.... 우선 동작에 대해 조금 더 살펴보자! (좋은 글에서는 expression 과 statement 로 차이를 두기도 한다. 그런데 이 글의 요지는 그게 아니니까 따로 찾아보자.) 결론부터 말하면 3항 연산자와 if else 는 대부분의 경우는 동일하게 동작하지만 항상 동일하게 동작하지는 않는다! 코드로 알아봅시다! public class Appli..