Get first n characters of string

Write a function that takes a string (a) as argument. Get the first 3 characters of a. Return the result
JavaScript
Console