Compare length of two strings: Difference between revisions
Content added Content deleted
Line 135: | Line 135: | ||
} |
} |
||
}</lang> |
}</lang> |
||
{{output}} |
|||
<pre>"123456789" has 9 and is the longest string |
|||
"1234567" has 7 and is neither the longest nor the shortest string |
|||
"abcdef" has 6 and is neither the longest nor the shortest string |
|||
"abcd" has 4 and is the shortest string</pre> |
|||
=={{header|jq}}== |
=={{header|jq}}== |