JavaScript arrays are used to store multiple values in a single variable. Example : var name= [“Irfan”, “Ullah”, “Munna”]; What is an Array? An array is a special variable, which can hold more than one value at a time. If you have a list of items (a list of people…