Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

difference between statement and expression

>>> x + 2         # an expression
>>> x = 1         # a statement 
>>> y = x + 1     # a statement
>>> print y       # a statement (in 2.x)
2
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #difference #statement #expression
ADD COMMENT
Topic
Name
2+2 =