Get the Character at a Given Index

Given a string and a variable n, assign the character at index n of the string to a variable named charAtIndex. Use string indexing with the variable n.
JavaScript
Console