falsy

[美國]/fɔːlsi/
[英國]/fɔlsi/

中文釋義

adj. 在布爾環境中評估為假;假;不真實
n. 偽值
詞形
複數falsies

短語搭配

falsy value

虛值

falsy values

虛值

is falsy

是虛值

falsy data

虛值資料

become falsy

變成虛值

return falsy

返回虛值

evaluates falsy

評估為虛值

treat as falsy

視為虛值

falsy statement

虛值語句

deemed falsy

被視為虛值

例句

in javascript, null is a falsy value.

在 JavaScript 中,null 是一個虛值。

the function returns a falsy result when the input is invalid.

當輸入無效時,這個函數會返回一個虛值結果。

we treat empty strings as falsy in conditional statements.

在條件語句中,我們將空字符串視為虛值。

the expression evaluates to falsy because the number is zero.

因為這個數字是零,所以這個表達式評估為虛值。

many developers confuse truthy and falsy concepts.

許多開發人員會混淆Truthy和Falsy的概念。

the boolean check converts the operand to falsy or truthy.

布爾檢查會將操作數轉換為虛值或Truthy。

an empty array is actually truthy, not falsy in javascript.

在 JavaScript 中,一個空陣列實際上是Truthy,而不是虛值。

the condition becomes falsy when the variable is undefined.

當變量未定義時,條件會變成虛值。

you should verify whether the value is falsy before using it.

在使用值之前,您應該驗證該值是否為虛值。

the comparison returns falsy due to type coercion rules.

由於類型強制轉換規則,比較返回虛值。

this pattern helps avoid falsy checks by using default values.

此模式通過使用默認值來幫助避免虛值檢查。

in python, none is considered falsy in boolean contexts.

在 Python 中,None 在布爾上下文中被視為虛值。

下載 App 以解鎖完整內容

想更有效率地學習單字嗎?下載 DictoGo 應用程式,享受更多單字記憶與複習功能!

立即下載 DictoGo