Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Upper Case === input solution in Clear category for All Upper I by danielsan
function isAllUpper(text: string): boolean {
return text.toUpperCase() === text;
}
console.log('Example:');
console.log(isAllUpper('ALL UPPER'));
import assert from "assert";
assert.equal(isAllUpper('ALL UPPER'), true);
assert.equal(isAllUpper('all lower'), false);
assert.equal(isAllUpper('mixed UPPER and lower'), false);
assert.equal(isAllUpper(''), true);
console.log("Coding complete? Click 'Check' to earn cool rewards!");
April 23, 2020