Site icon Tutor Bin

Javascript Question

Javascript Question

Description

I am working a javascript assignment and I don’t know what to do. (Am very first time with javascript)

It was not clear from my comments in the starter code that these two methods needed to call fillContent() at the end of the method. (BTW – I created fillContent() to avoid writing the same code twice.) So, here are the two lines of code that should be added:

function fillEntries(data) { ... // other code first
fillContent(); //This should be your last line of code in this method
}

function postTGTs(newPost) { ... // other code first
fillContent(); //This should be your last line of code in this method
}

Purpose

The purpose of this assignment is to implement JavaScript so that our websites become interactive and thus better fulfill Usability/Design Principles. This is also will prepare us for ReactJS, because it uses a slightly modified version of JavaScript (called JSX) to add interactivity. This works toward the course objective of “Implement a website using HTML, Bootstrap, and ReactJS.”

Task

Overall

starter code is provided below. The HTML/Bootstrap content has been established. You will add JavaScript to the below files. There are comments in both the HTML and JS files to explain what everything should do.

  • script.js
  • read.html between tags: <script>…</script>

You are implementing a simple app called “Three Good Things.”

  • On the home page, you have the option to add three good things for today’s date. You can also edit and update the three good things. Finally, you can cancel before you finish updating.
  • On the read page, you can read your prior entries (including today’s if you already filled it out).
  • Until you close the page, you should be able to see your entry for today if you filled it out.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Exit mobile version