Which of these method is used to make all elements of an equal to specified value?
A. add()
B. fill()
C. all()
D. set()
Answer:A
Which of these method is used to make all elements of an equal to specified value?
A. add() B. fill() C. all() D. set()
Explanation: fill() method assigns a value to all the elements in an array, in other words it fills the array with specified value.