Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

West Midlands - Class 3 - Maria Chira - JavaScript Core 2 - Week 3 #101

Open
Maria-Chira wants to merge 3 commits intoCodeYourFuture:mainfrom
Maria-Chira:main
Open

West Midlands - Class 3 - Maria Chira - JavaScript Core 2 - Week 3 #101
Maria-Chira wants to merge 3 commits intoCodeYourFuture:mainfrom
Maria-Chira:main

Conversation

@Maria-Chira
Copy link
Copy Markdown

@Maria-Chira Maria-Chira commented Oct 15, 2021

Your Details

  • Your Name: Maria Chira
  • Your City: Birmingham
  • Your Slack Name: Maria Georgiana Chira

Homework Details

  • Module: JavaScript - Core 2
  • Week: 3

let randomQuote = pickFromArray(quotes);
quote.innerHTML = `"${randomQuote.quote}"`;
author.innerHTML = `- ${randomQuote.author}`;
}, 60000);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have given my viewers only a few seconds to read the quote, i should probably change my code!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi John, one of the requirments in the extra task was: "when the switch is ON the generator should pick and display a new quote every 60 seconds". This is the reason why I put 60000 inside the setInterval function.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self. Read the task.

Copy link
Copy Markdown

@Sinead-CYF Sinead-CYF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very neat :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants