I really tried incorporte it in my project, but show me error by random. Anybody can help me what is wrong? This is my error code:
import superheroes from "superheroes"
const mySuperHeroName = superheroes.random()
console.log(`I am ${mySuperHeroName} !`)
//const mySuperHeroName = superheroes.random()
↑
by terminal TypeError superheores.random() is not a function
I’ve already installed the package and changed the type to module.
Show me in terminal error about superheroes.random() say this “random” is not a function.
New contributor