Arrays can be created by declaring them with values enclosed in double quotes or by assigning values to individual indices.