Get nth character of string

Write a function that takes a string (a) and a number (n) as argument. Return the nth character of 'a'.
JavaScript
Console