All ChallengesLoading...
Not Solved

Get last four characters

Write a function that takes a string and returns the last four characters. If the string has fewer than four characters, return the entire string.
Beginner
sample input: "OpenAI" 
sample output: enAI
Loading...
Test Output: