Sail E0 Webinar
Question
Which of these method is used to make all elements of an equal to specified value?
Options:
A .  add()
B .  fill()
C .  all()
D .  set()
Answer: Option B


fill() method assigns a value to all the elements in an array, in other words it fills the array with specified value.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers