Created
May 20, 2022 22:09
-
-
Save trycf/aa08c8e3eae08360b6efc2149c8cb84d to your computer and use it in GitHub Desktop.
TryCF Gist
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
<cfscript> | |
s = "abc" | |
s.each((c)=>{ | |
//writeoutput(c.ucase()) // The ucase method was not found | |
writeOutput("#c.getClass().getName()#<br>") // java.lang.Character | |
writeOutput("#c.toString().ucase()#<br>") // sigh | |
}) | |
writeOutput("<hr>") | |
a = s.split("") | |
c = a[1] | |
writeOutput("#c.ucase()#: #c.getClass().getName()#<br>") // A: java.lang.String | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment