목록F2. Problem & Solving/Solving (23)
Silver Library (Archived)
For...of for...of 명령문은 반복가능한 객체 (Array, Map, Set, String, TypedArray, arguments 객체 등을 포함)에 대해서 반복하고 각 개별 속성값에 대해 실행되는 문이 있는 사용자 정의 반복 후크를 호출하는 루프를 생성합니다. For...in for...in문은 상속된 열거 가능한 속성들을 포함하여 객체에서 문자열로 키가 지정된 모든 열거 가능한 속성에 대해 반복합니다. 여기서 사용이 낯선 것이 for of statement 입니다. 그래서, 이 글은 for of 문에 초점을 둡니다. const array1 = ['a', 'b', 'c']; for (const element of array1) { console.log(element); } // expect..
wrapper object (linked to prototype, heritage) Caution: Some of them may be incorrect. Read at your own risk. Note: it is about the difference of 'where to store the value', and 'temporary', 'primitive'. Scanning for its object with the method I input to refer it accordingly. This is kind of 'temporarily use the Primitive things like method.' Once I approach to some method with Primitive, const ..
Why I use this? - To group up (or wrap up) a number of string characters to print out a singularly indicated result. Personal note: So this switch belongs to prototype. Hint: The switch statement evaluates an expression, matching the expression's value to a case clause, and executes statements associated with that case, as well as statements in cases that follow the matching case. Bit more: A sw..
My initial sight: Looks like readline() is called module, and this can be used as a tool to read the data from *readable streams. Note: *Readable streams are an abstraction for a source from which data is consumed. (e.g. process.stdin) Why I searched for this module? To understand the purpose of using this module from JS problem & solving question. To access some data by using readline, const re..