JS
challenger
Home
JavaScript Practice
JavaScript arrays
Sort an array of strings alphabetically
Sort an array of strings alphabetically
Write a function that takes an array of strings as argument. Sort the array elements alphabetically. Return the result.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console