본문 바로가기

직독직해5

Eloquent Javascript 3E, Chapter 1 Values, Types, and Operators CHAPTER 1 Values, Types, and Operators that which isn’t data 데이터가 아닌 것 All this data: data는 datum의 복수형이지만, 요즘은 셀 수 없는 명사로 단수 취급한다. 따라서 All these data로 쓰는 경우는 거의 없다. fundamentally alike: 근본적으로는 같다, 즉 데이터는 어떤 형식이든 결국 0과 1로 저장된다는 뜻이다. alike처럼 a로 시작하는 형용사는 명사를 수식하지 않는다. 예: alone, alive, asleep, awake ... 이와 반대로 명사를 수식만 하는 형용사도 있다. 이들은 구분할 규칙이 없기 때문에 일일이 외우는 수밖에 없다. 예: stray, main ... two-valued: 이런 .. 2022. 6. 27.
Eloquent JavaScript 3판 - 재진입 Eloquent JavaScript 3판 - 들어가기 Eloquent JavaScript 3판은 2018년에 출간되었고, 국내에서는 이전 판이 자바스크립트 개론이라는 제목으로 출간되었습니다. 여기서는 저자의 허락을 받아 3판을 프로그래머의 영어 공부용 교재로 사용합니다. 우선 그간 게시된 내용부터 정리하겠습니다. 원문은 아래 공식 웹 사이트에서 여러 형식으로 다운로드하실 수 있습니다. 그리고 저자에 대해 궁금하신 분은 이곳을 방문해 보시기 바랍니다. eloquentjavascript.net Eloquent JavaScript는 자바스크립트를 바탕으로 컴퓨터를 어떻게 프로그래밍할 수 있는지 다루고 있는 책입니다. 기 출간된 자바스크립트 개론이라는 제목과는 다소 거리감이 있습니다. 개론이라기보다는 개론을 지.. 2022. 6. 20.
Eloquent JavaScript 3판: 2장 14절-17절 Comments까지. 끝. Updating bindings succinctly Dispatching on a value with switch Capitalization Comments Updating bindings succinctly Especially when looping, a program often needs to “update” a binding to hold a value based on that binding’s previous value. counter = counter + 1; JavaScript provides a shortcut for this. counter += 1; Similar shortcuts work for many other operators, such as result *= 2 to double.. 2020. 8. 24.
Eloquent JavaScript 3판: 2장 8절-13절 Breaking Out of a Loop까지 Control flow Conditional execution while and do loops Indenting Code for loops Breaking Out of a Loop Control flow When your program contains more than one statement, the statements are executed as if they are a story, from top to bottom. This example program has two statements. The first one asks the user for a number, and the second, which is executed after the first, shows the square of that .. 2020. 8. 24.
Eloquent JavaScript 3판: 2장 4절-7절 Return Values까지 The environment Functions The console.out function Return Values The environment The collection of bindings and their values that exist at a given time is called the environment. When a program starts up, this environment is not empty. It always contains bindings that are part of the language standard, and most of the time, it also has bindings that provide ways to interact with the surrounding .. 2020. 8. 20.