First Draft
First Draft of the Example Files
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
<script>
|
||||
words = fixNames("the", "DALLAS", "CowBoys")
|
||||
|
||||
for (j = 0 ; j < words.length ; ++j)
|
||||
document.write(words[j] + "<br>")
|
||||
|
||||
function fixNames()
|
||||
{
|
||||
var s = new Array()
|
||||
|
||||
for (j = 0 ; j < fixNames.arguments.length ; ++j)
|
||||
s[j] = fixNames.arguments[j].charAt(0).toUpperCase() +
|
||||
fixNames.arguments[j].substr(1).toLowerCase()
|
||||
|
||||
return s
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user