From 3832eef4b81f86aeda702d6faf21cf80cc0ae534 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 2 Jun 2022 19:18:08 -0500 Subject: [PATCH] initial commit --- js/models.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/js/models.js b/js/models.js index 04e7d04..5a03c61 100644 --- a/js/models.js +++ b/js/models.js @@ -73,8 +73,20 @@ class StoryList { * Returns the new Story instance */ - async addStory( /* user, newStory */) { + async addStory(/*user, newStory*/) { // UNIMPLEMENTED: complete this function! + /* + user = ("theCat"); + console.log(user); + let newStory = {title: "house", author: "humannn", url:"www.google.com"}; + console.log(newStory); + */ + /* + let newStory = await storyList.addStory(currentUser, + {title: "Test", author: "Me", url: "http://meow.com"}); + */ + + } }