Closures allow a function to remember the scope in which it was created, even after that scope has finished executing. This causes 'state' to be preserved.
createSecretHolder that takes a secret argumentsecretgetSecret function by calling createSecretHolder with the secret "MySecret"getSecret() and store the result in revealedSecretSubmit your code to see test results