Comma quibbling: Difference between revisions
Content deleted Content added
MaiconSoft (talk | contribs) m Added Delphi reference to Pascal code |
|||
Line 1,912: | Line 1,912: | ||
{Jack and Jill} |
{Jack and Jill} |
||
{Loner}</pre> |
{Loner}</pre> |
||
Alternative implementation: |
|||
<lang JavaScript> |
|||
function quibble(words) { |
|||
var words2 = words.join() |
|||
var words3 = [...words2].reverse().join(''); |
|||
var res = words3.replace(",", " dna "); |
|||
var words4 = [...res].reverse().join(''); |
|||
return '{'+words4+'}'; |
|||
} |
|||
</lang> |
|||
=={{header|jq}}== |
=={{header|jq}}== |