GithubHelp home page GithubHelp logo

wizardforcel / eloquent-js-3e-zh Goto Github PK

View Code? Open in Web Editor NEW
510.0 21.0 65.0 2.04 MB

:book: [译] JavaScript 编程精解 中文第三版

Home Page: https://www.gitbook.com/book/wizardforcel/eloquent-js-3e/details

CSS 100.00%
javascript eloquent book

eloquent-js-3e-zh's Issues

第五章有一个无伤大雅的小错误

第五章 可组合性 第二个代码块前面的那句话:

举个例子,我们编写一段代码,找出数据集中男人和女人的平均年龄。

原文是活着和死亡语言的平均年龄:

As an example, let’s write code that finds the average year of origin for living
and dead scripts in the data set.

勘误

位置 :
一、值,类型和运算符
自动类型转换
错误内容 :
"字符串和数字转换为布尔值的规则表明,0,NaN和空字符串("")计为false,而其他所有值都计为true。"

原作中没有这一句 , 而且这句是错的 . NaN == false返回的是false .

chapter3

Functions as values
A function binding usually simply acts as a name for a specific piece of the program. Such a binding is defined once and never changed. This makes it easy to confuse the function and its name.

But the two are different. A function value can do all the things that other values can do—you can use it in arbitrary expressions, not just call it. It is possible to store a function value in a new binding, pass it as an argument to a function, and so on. Similarly, a binding that holds a function is still just a regular binding and can, if not constant, be assigned a new value, like so:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.