The JavaScript forEach method calls the specified function for every element in an array. It is not used with empty arrays.