tracks/cfml/exercises/pangram/Solution.cfc in trackler-2.2.1.104 vs tracks/cfml/exercises/pangram/Solution.cfc in trackler-2.2.1.105
- old
+ new
@@ -1,17 +1,17 @@
/**
* Here is an example solution for the Pangram exercise
*/
component {
- function isPangram( input ) {
- // Lowercase input to simplify search
- input = input.lCase();
+ function isPangram( sentence ) {
+ // Lowercase sentence to simplify search
+ sentence = sentence.lCase();
var i = 96;
// ASCII codes 97-122 are a-z
while( ++i <= 122 ) {
// If any letter is missing, then quit
- if( !input.find( chr( i ) ) ) {
+ if( !sentence.find( chr( i ) ) ) {
return false;
}
}
// If we made it through, then all letters were found!
return true;
\ No newline at end of file