JS
challenger
Home
JavaScript Practice
JavaScript fundamentals
Get nth character of string
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'.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console