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