memrootじしょ
英和翻訳
Ternary operation
prioritized tasks
privileged insight
shift work sleep disorder
studio monitors
Intravenous anesthetic
several months
going along with
mind blank
Saxitoxin
Ternary operation
/ˈtɜːrnəri ˌɒpəˈreɪʃən/
ターナリー オペレーション
1.
3つのオペランド(引数や値)を取る演算のこと。プログラミングにおいて、条件に基づいて異なる値を返す条件演算子(? :)などが代表的です。
プログラミングにおいて、特定の条件に基づいて異なる二つの値を評価する際に用いられる、三つの要素(条件、真の場合の値、偽の場合の値)からなる演算子のことです。コードをより簡潔に記述するために使用されます。
In
JavaScript,
the
conditional
(ternary)
operator
is
the
only
JavaScript
operator
that
takes
three
operands.
(JavaScriptでは、条件(三項)演算子は、3つのオペランドを取る唯一のJavaScript演算子です。)
In JavaScript
JavaScriptにおいて
the conditional (ternary) operator
条件(三項)演算子は
is
~である
the only JavaScript operator
唯一のJavaScript演算子
that takes
~を取る
three operands
3つのオペランド
A
ternary
operation
is
often
used
as
a
shorthand
for
an
if-else
statement.
(三項演算は、しばしばif-else文の短縮形として使われます。)
A ternary operation
三項演算は
is often used
しばしば使われる
as a shorthand
短縮形として
for an if-else statement
if-else文のための
You
can
use
a
ternary
operation
to
assign
a
value
based
on
a
condition.
(条件に基づいて値を割り当てるために三項演算を使用できます。)
You can use
あなたは使用できる
a ternary operation
三項演算を
to assign
割り当てるために
a value
値を
based on a condition
条件に基づいて
関連
Conditional operator
If-else statement
Binary operation
Unary operation
Operator
Operand