All ChallengesLoading...
Not Solved
Extract first three characters
Write a function that takes a string and returns the first three characters. If the string has fewer than three characters, return the entire string.
Beginner
sample input: "hello"
sample output: hel
Loading...
Test Output: