In Java script we can fills the specified elements in an array with a static value using fill() method so today we are going to discuss how to fill specified elements in an array by static value.