reinitialise array in jaava script code example Example: how to create an array in javascript let fruits = ['Apple', 'Banana'] console.log(fruits.length) // 2