Posts

Showing posts from April, 2020

Console.log(BlogPost.write("no idea"))

import React from 'react' class BlogPost extends React . Component { write = ( topic ) => { let text switch ( topic ) { case "Something I Learned During a Lab" : let code = Math . floor ( AllJavaScriptFunctions . random ()) text = summaryOfW3SchoolsDocumentation ( code ) text . concat ( problemIDidWithThis ( code )) break ; case "Tips on How to Work" : let x = Math . floor ( 3 * Math . random ()) switch ( x ) { case 0 : text = generateOrganizationalTips () break ; case 1 : text = generateMotivationalTips () break ; case 2 : text = generateTimeManagementTips () ...