Skip to main content

Helper functions


Return the results of these helper functions

/** @param {string} name */
export function getNumberOfChars(name) {
// return the number of characters in: name
return name.length;
}


/** @param {string} name */
export function getLower(name) {
// return name all in lower case (example: "ABC" becomes "abc")
return name.toLowerCase();

}

/** @param {string} name */
export function getUpper(name) {
// return name all in upper case (example: "abc" becomes "ABC")
return name.toUpperCase();
}