Skip to content

mohit-negi/javascript-quote-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javascript-quote-generator

Description : Quote generator built with vanilla javascript

Key concepts learned from this

  • Selectors : document.querySelector();
  • EventListener : addEventListener();
  • Math object
  • Adding text to an element: innerText;

Took me 2hr mostly spent on html and css

Process:

  1. set different variables to seleect different elements
  2. Add an array(more like structure(in c)) of Quotes containing various quotes and the author
  3. Add a Event listener to the button add a function to it
  4. Function generates a random number depending upon the length of the array or structure containing quotes which then adds or edits the innertext and add quotes and their author to the div

About

Quote generator built with vanilla javascript

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors