Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
declaring and calling a function in one line strangeness - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
4y ago
•
9 replies
Wolle
declaring and calling a function in one line strangeness
Can anyone explain
, why this returns
'string
'
?
function
testTwo
() {
return
'return'
; }(
'string'
)
function
testTwo
() {
return
'return'
; }(
'string'
)
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Display elements in one line
KP-C
Kevin Powell - Community / front-end
3y ago
Calling a function with params onclick
KP-C
Kevin Powell - Community / front-end
4y ago
JS – Calling a PHP public function with vanilla javascript
KP-C
Kevin Powell - Community / front-end
16mo ago