I am just at javascript level 1 and would like to get your help in my case.
I create an array with the array name "buildings". But when I run code, it says "TypeError: buildings is not a function". I tried to replace "buildings" with "buildingsTypes" and other names like "housing" or "building" or even "x" but it does not work.
May you point out what is wrong with it? and how should I correct it? Thank you.
const buildings = ["Apartment", "Studio", "Condo"];
console.log(buildings);
buildings(0) = ["Villa"];
console.log(buildings);
buildings.push("Hotel");
console.log(buildings);