![]() ![]() Operator returns a value rather than “evaluates to” a value. TheĮxpression x * y evaluates to the product of the values of theĮxpressions x and y. The multiplication operator * is a simple example. Its operands (usually two of them) in some way and evaluates to a new The most common way to build a complex expression out of simplerĮxpressions is with an operator. Object and zero or more additional expressions that are used as the Similarly, a function invocationĮxpression consists of one expression that evaluates to a function This new, moreĬomplex expression evaluates to the value stored at the specified An array accessĮxpression, for example, consists of one expression that evaluates toĪn array followed by an open square bracket, an expression thatĮvaluates to an integer, and a close square bracket. ComplexĮxpressions are built from simpler expressions. To whatever value has been assigned to that variable. A variable name is also a simple expression that evaluates ![]() A constantĮmbedded literally in your program is a very simple kind ofĮxpression. Of JavaScript that can be evaluated to produce a value. This chapter documents JavaScript expressions and the operators with which many of those expressions are built. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |