본문 바로가기

원서읽기/Eloquent JavaScript, 3E16

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.
Eloquent JavaScript 3판: 2장 1절-3절 Binding Names까지 Expressions and statements Bindings Binding Names CHAPTER 2 Program Structure In this chapter, we will start to do things that can actually be called programming. We will expand our command of the JavaScript language beyond the nouns and sentence fragments we’ve seen so far, to the point where we can express meaningful prose. 프로그래밍이란 무엇인지 본격적으로 설명하기 시작합니다. Expressions and statements In Chapter 1.. 2020. 8. 13.
Eloquent JavaScript 3판: 1장 6절 7절 Automatic Type Conversion까지. 끝. Empty values Automatic type conversion Short-circuiting of logical operators Summary Empty values There are two special values, written null and undefined, that are used to denote the absence of a meaningful value. They are themselves values, but they carry no information. Many operations in the language that don’t produce a meaningful value (you’ll see some later) yield undefined simply because.. 2020. 5. 22.
Eloquent JavaScript 3판: 1장 4절 5절 Boolean Values까지 얇은 밑줄: 직독직해를 위한 마우스 오버 텍스트 Unary operators Boolean values 굵은 밑줄: 부연 설명 Comparison Logical operators Unary operators Not all operators are symbols. Some are written as words. One example is the typeof operator, which produces a string value naming the type of the value you give it. operator 연산자 it = typeof operator console.log(typeof 4.5) // → number console.log(typeof "x") // → string We will us.. 2020. 5. 21.
Eloquent JavaScript 3판: 1장 3절 Strings 얇은 밑줄: 직독직해를 위한 마우스 오버 텍스트 굵은 밑줄: 부연 설명 Strings The next basic data type is the string. Strings are used to represent text. They are written by enclosing their content in quotes. content 내용물, 즉 text enclose 에워싸다 `Down on the sea` "Lie on the ocean" 'Float on the ocean' You can use single quotes, double quotes, or backticks to mark strings, as long as the quotes at the start and the end of the st.. 2020. 5. 19.
Eloquent JavaScript 3판: 1장 2절 Numbers Numbers Arithmetic Special Numbers Numbers Values of the number type are, unsurprisingly, numeric values. In a JavaScript program, they are written as follows: 13 Use that in a program, and it will cause the bit pattern for the number 13 to come into existence inside the computer’s memory. JavaScript uses a fixed number of bits, 64 of them, to store a single number value. There are only so many .. 2020. 5. 7.