From 1ceafe567bf83c33cc93e8732a94aac6152bef4f Mon Sep 17 00:00:00 2001 From: gchoi2u Date: Mon, 14 Dec 2020 11:15:23 -0500 Subject: [PATCH] added comments to Solved and Unsolved code --- Develop/index.js | 19 ++++++++----------- Develop/utils/generateMarkdown.js | 14 +++++++++++++- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/Develop/index.js b/Develop/index.js index 736d69ed..8bfbdf11 100644 --- a/Develop/index.js +++ b/Develop/index.js @@ -1,16 +1,13 @@ -// array of questions for user -const questions = [ +// TODO: Include packages needed for this application -]; +// TODO: Create an array of questions for user input +const questions = []; -// function to write README file -function writeToFile(fileName, data) { -} +// TODO: Create a function to write README file +function writeToFile(fileName, data) {} -// function to initialize program -function init() { +// TODO: Create a function to initialize app +function init() {} -} - -// function call to initialize program +// Function call to initialize app init(); diff --git a/Develop/utils/generateMarkdown.js b/Develop/utils/generateMarkdown.js index f1b8f8f9..9b645668 100644 --- a/Develop/utils/generateMarkdown.js +++ b/Develop/utils/generateMarkdown.js @@ -1,4 +1,16 @@ -// function to generate markdown for README +// TODO: Create a function that returns a license badge based on which license is passed in +// If there is no license, return an empty string +function renderLicenseBadge(license) {} + +// TODO: Create a function that returns the license link +// If there is no license, return an empty string +function renderLicenseLink(license) {} + +// TODO: Create a function that returns the license section of README +// If there is no license, return an empty string +function renderLicenseSection(license) {} + +// TODO: Create a function to generate markdown for README function generateMarkdown(data) { return `# ${data.title}