Random element finder

Report a typo

Change the getRomanNumber function so that it returns a random item from the romanNumbers array, starting from the second element i.e. index 1.

const romanNumbers = ["I", "II", "III", "IV", "V"];

Tip: Modify the function and return the random item from an array except for the first item. The output should be a single item such as: "V".

Write a program in JavaScript
function getRomanNumber(array) {
// Write your code here
}
___

Create a free account to access the full topic