X1252: firstHalf

Complete the following function. Given aString, return the first half of characters in that string (the string "woohoo" yields "woo"). Odd lengths should be rounded down

Examples:

firstHalf("racecars") -> "race"
firstHalf("?Odds and spaces?") -> "?Odds an"

Your Answer:

Feedback

Your feedback will appear here when you check your answer.