Skip to content

teotimepacreau/Callback-blog-Day22-Of-100DaysOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Microblog

Microblog.mp4

Project goals

  • use of callbacks, split string method, Map array method, Object.assign method
  • I'm displaying posts with a non complete array of posts in order to use a callback
  • A function add a third post to the array after the displayPost function, I put displayPost as a callback in the insertContent function, the third Post is added in the insertContent function call
  • Then I wanted to display dynamically hashtags by taking the second word of the title with split method, hashtags are inserted in each object with the map method and the object.assign

🛠️

VanillaJS, CSS, HTML