Special variables: Difference between revisions

jq
(jq)
Line 821:
}
concat("a", "b", "c"); // returns "abc"</lang>
 
=={{header|jq}}==
Variables in jq are identifiers preceded by the sigil "$", e.g. <code>$x</code>. There are no predefined variables, but jq does allow variables to be assigned string values on the command line.
 
For example:<lang sh>$ jq -n -M --arg x 1 '$x|type' # (*)
"string"</lang>
(*) Windows users would write "$x|type".
 
=={{header|Lasso}}==
2,515

edits