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