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()
break;
default:
text = generateSomethingIDidThatHelpedOnce()
}
break;
case "Programming Culture":
if (youDontKnowAnythingAboutThisYet === true) {
text = anecdoteYouHeardOnceFromYourProgrammerBuddy()
} else {
text = anecdoteThatSaysMoreAboutYourPersonalExperienceThanCodingInGeneral()
}
break;
default:
text = BlogPost.write("BlogPost")
}
return text
}
}

export default BlogPost

Comments

Popular posts from this blog

The Sorting Hat

Kadane's Algorithm

Loose Equality, the Null Operator, and Other Oddities