Starting elements in String
Return true if the given string starts with 'Code'.
Sample Code:
function startsWith(str) {
// Enter your logic here...
}
Examples:
Input: 'Codetisan'
Output: true
Explanation: 'Codetisan' starts with 'Code'.
Input: 'meow'
Output: false
Explanation: 'meow' does not start with 'Code'.