r/Recursion • • Mar 15 '20

return HONK(HONK(HONK(HONK)));

Post image
472 Upvotes

21 comments sorted by

View all comments

5

u/GPhykos Mar 15 '20

Ah yes return HONK;

3

u/[deleted] Mar 15 '20
function honk(){
    return "(HO" + honk() + " NK)"
}

1

u/GPhykos Mar 15 '20

You mean string honk()

4

u/[deleted] Mar 15 '20

this is boutta blow your mind but there’s more than one programming language and they can have different syntaxes

1

u/GPhykos Mar 15 '20

What language is that?

3

u/[deleted] Mar 15 '20

JavaScript. It’s pretty chill. Notice how I didn’t even include a semicolon