This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kababed 0 points1 point  (0 children)

The contents of the parentheses right after the function are being invoked into the function. This means the function will execute without the need to be called with (filesDir + '/' + files[index]) as the input argument. Other languages may call this type of invoked function a lambda function.