Created
December 8, 2023 17:55
-
-
Save jsteinshouer/048c9ebc9a93d3f390d60e7136bbcc0f to your computer and use it in GitHub Desktop.
Variable Scope Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component { | |
function saveRecord( required firstName, required lastName) { | |
record = { | |
firstName = arguments.firstName, | |
lastName = arguments.lastName | |
}; | |
//simulate load on the system | |
sleep( randRange(1,250) ); | |
return " | |
Record Saved! | |
#serializeJSON(record)#"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment