Get last n characters of string

Write a function that takes a string as argument. Extract the last 3 characters from the string. Return the result
JavaScript
Console