请输入您要查询的单词:

 

单词 falsy
释义

falsy

English

Alternative forms

  • falsey

Etymology

false + -y

Adjective

falsy (not comparable)

  1. (computing, programming) Evaluating to false in a Boolean context.
    • 2012, David Flanagan, JavaScript Pocket Reference, page 40:
      In JavaScript, any expression or statement that expects a boolean value will work with a truthy or falsy value, so the fact that && does not always evaluate to true or false does not cause practical problems.
    • 2014, Basarat Syed, Beginning Node.js, →ISBN, page 33:
      However, in the second case, both '0' and the empty string ('') are falsy (in other words, they behave like false) and are therefore equal with respect to ==.
    • 2016, Kenny Ballou, Learning Elixir, →ISBN, page 92:
      If the first operand (which comes before the question mark--doIt, in this example) is truthy, the expression evaluates to the second operand (between the question mark and colon), and if it's falsy, it evaluates to the third operand (after the colon).

Antonyms

  • (computing): truthy

Anagrams

  • flays
随便看

 

国际大辞典收录了7408809条英语、德语、日语等多语种在线翻译词条,基本涵盖了全部常用单词及词组的翻译及用法,是外语学习的有利工具。

 

Copyright © 2004-2023 idict.net All Rights Reserved
京ICP备2021023879号 更新时间:2024/10/8 22:43:59