Check Last Character
STRING
Problem
Given a string text, return true if the last character of the string is either 'C' or 'Q' (case-insensitive), and false otherwise.
Examples
lastCharCheck('HelloC') // true lastCharCheck('HelloQ') // true lastCharCheck('Hello') // false lastCharCheck('c') // true
Loading...