JS
challenger
Home
JavaScript Practice
JavaScript arrays
Check if all array elements are equal
Check if all array elements are equal
Write a function that takes an array as argument. It should return true if all elements in the array are equal. It should return false otherwise.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console