Habitat may be defined as the particular area occupied by the organism. Habitat involves the physical activity performed by the organism in its area. Habitat only reflects the living place of the organism. Habitat explains where the species live in the ecosystem.
Niche:
Niche may be defined as the role of the individual organism in its ecosystem. The function or the physiological activity of the organism in the area describes the niche. The association of the organism with the biotic and abiotic component to obtain food is included in niche. Niches explains the way by which organism live in an ecosystem.
If the predator that feeds off the dart frogs goes extinct or migrates to a different area then the dart fronts will have a much larger population. This means that the resources the dart frogs rely on will start to deminish and their prey will have smaller numbers