Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

Echo

Echo[expr]
prints expr and returns expr.

Echo[expr,label]
prints expr prepending label and returns expr.

Echo[expr,label,f]
prints prepending label and returns expr.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Print the result of an intermediate computation:

In[1]:=
Click for copyable input
2
Out[2]=

Print an intermediate result using a label:

In[1]:=
Click for copyable input
"sum: " 2
Out[2]=

Report a property of an intermediate result:

In[1]:=
Click for copyable input
"length: " 6
Out[2]=
Introduced in 2015
(10.3)