Mixed messages

Thanks for coming to share your portfolio Project with other learners!

When posting your project for review, please be sure to include the following:

  • Your review of the Project. Was it easy, difficult, just right?
  • An estimate of how long it took you to complete
  • The link to your code repo

We hope you enjoyed this project!
eventTarget.removeEventListener(‘event’, eventHandlerFunction);

let fortunes = [‘A beautiful, smart, and loving person will be coming into your life.’,
‘A fresh start will put you on your way.’,
‘A golden egg of opportunity falls into your lap this month.’,
‘A smile is your personal welcome mat.’,
‘All your hard work will soon pay off.’
]

let button = document.getElementById(‘fortuneButton’);
let fortune = document.getElementById(‘fortune’);

function fortuneSelector(){
let randomFortune = Math.floor(Math.random() * fortunes.length);
return fortunes[randomFortune];
}

function showFortune(){
fortune.innerHTML = fortuneSelector();
button.innerHTML = ‘Come back tomorrow!’;
button.style.cursor = ‘default’;

//add your code here
button.removeEventListener(‘click’, showFortune);
}

button.addEventListener(‘click’, showFortune);

just checking out how to post my products thanks all