How to switch two arguments of a function.
Start file
function testFunction (foo, bar) {
}
End file
function testFunction (bar, foo) {
}
1c1
< function testFunction (foo, bar) {
---
> function testFunction (bar, foo) {
Unlock
22 remaining solutions by
signing in and submitting your own entry
684 active golfers, 2229 entries
12
08/18/2026 at 03:52PM
13
08/18/2026 at 03:52PM
14
08/18/2026 at 03:52PM
15
08/18/2026 at 03:52PM
16
08/18/2026 at 03:52PM
17
08/18/2026 at 03:52PM
18
08/18/2026 at 03:52PM
19
08/18/2026 at 03:52PM
20
08/18/2026 at 03:52PM
21
08/18/2026 at 03:52PM
22
08/18/2026 at 03:52PM
23
08/18/2026 at 03:52PM
25
08/18/2026 at 03:52PM
26
08/18/2026 at 03:52PM
27
08/18/2026 at 03:52PM
28
08/18/2026 at 03:52PM
31
08/18/2026 at 03:52PM
33
08/18/2026 at 03:52PM
47
08/18/2026 at 03:52PM
48
08/18/2026 at 03:52PM
63
08/18/2026 at 03:52PM
104
08/18/2026 at 03:52PM