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'.
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Console