Skip to content
Advertisement

How to display elements of this array?

JavaScript

I want all the values of i for which the number is repeating in newArr array. Statement (a) gives me the indices and I want to store them in an array named rem. However console.log(rem[0]) is undefined. What can I do?

Advertisement

Answer

you mean this?

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement