In your index.html, notice the following: In your script.js file, create the following: // Courtesy Comments: Name and Date at bare minimum // Add your code here     let quoteStart = 'Don't judge each day by the harvest you reap ';     // Don't edit the code below here!     const section = document.querySelector('section');     let para1 = document.createElement('p');     para1.textContent = finalQuote;     section.appendChild(para1); Don't forget to add your courtesy comments! (Your name, the date, etc.) In the Javascript provided above, you have half of a famous quote inside a variable called quoteStart. To complete the assignment, you must do the following: Look up the other half of the quote Add the second half of the quote inside a variable called quoteEnd. Concatenate the two strings together as variables (do not just re-write the strings!) to make a single string containing the complete quote. The result of these two strings should be assigned to a variable called finalQuote. Run your repl. You'll find that you get an error at this point. Fix the problem with quoteStart, so that the full quote displays correctly, then re-run your repl. Submit your repl by clicking the Submit button       replit          css p {     color: purple;     margin: 0.5em 0; } * {     box-sizing: border-box;

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In your index.html, notice the following:

<section class="preview"></section>

In your script.js file, create the following:

// Courtesy Comments: Name and Date at bare minimum
// Add your code here

    let quoteStart = 'Don't judge each day by the harvest you reap ';

    // Don't edit the code below here!

    const section = document.querySelector('section');
    let para1 = document.createElement('p');
    para1.textContent = finalQuote;

    section.appendChild(para1);

Don't forget to add your courtesy comments! (Your name, the date, etc.)

In the Javascript provided above, you have half of a famous quote inside a variable called quoteStart.

To complete the assignment, you must do the following:

  1. Look up the other half of the quote
  2. Add the second half of the quote inside a variable called quoteEnd.
  3. Concatenate the two strings together as variables (do not just re-write the strings!) to make a single string containing the complete quote. The result of these two strings should be assigned to a variable called finalQuote.
  4. Run your repl. You'll find that you get an error at this point.
  5. Fix the problem with quoteStart, so that the full quote displays correctly, then re-run your repl.
  6. Submit your repl by clicking the Submit button

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>replit</title>
  <link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>

  <section class="preview"></section>
  
  <script src="script.js"></script>
</body>

</html>

css

p {
    color: purple;
    margin: 0.5em 0;
}

* {
    box-sizing: border-box;
}     

Expert Solution
Overview

In this question we have to write a HTML CSS JS based code, where we need to complete the JavaScript code snippet to create a famous quote and display it on a web page.

Let's code and hope this helps, if you find any issues on the solution utilize threaded question feature.

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education