Count how many vowels and consonants occur in a string: Difference between revisions
Count how many vowels and consonants occur in a string (view source)
Revision as of 21:42, 22 December 2022
, 1 year ago→{{header|J}}
(Add Plain English) |
m (→{{header|J}}) |
||
Line 906:
vctally 'Forever Action! programming language'
13 13</syntaxhighlight>
An alternative expression for <code>consonant</code> could be:
<syntaxhighlight lang="j">consonant=: (a.#~2|'@Z`z'I.a.) -. vowel</syntaxhighlight>
=={{header|JavaScript}}==
|