String length: Difference between revisions

Undo revision 302650 by PureFox (talk) Oops, should have read the task description properly!
(→‎{{header|Wren}}: Combined into one script, added output plus syntax highlighting.)
(Undo revision 302650 by PureFox (talk) Oops, should have read the task description properly!)
Line 3,251:
 
=={{header|Wren}}==
===Byte Length===
<lang ecmascript>// Byte length
<lang wren>System.print("møøse".bytes.count)
System.print("𝔘𝔫𝔦𝔠𝔬𝔡𝔢".bytes.count)
System.print("J̲o̲s̲é̲".bytes.count)
</prelang>
System.print()
// ===Character lengthLength===
 
<lang wren>System.print("møøse".count)
// Character length
System.print("møøse".count)
System.print("𝔘𝔫𝔦𝔠𝔬𝔡𝔢".count)
System.print("J̲o̲s̲é̲".count)</lang>
</lang>
 
{{out}}
<pre>
7
28
13
 
5
7
8
</pre>
 
=={{header|x86 Assembly}}==
9,490

edits