Can I get an Evaluation for Math Exercise 3

<meta charset="utf-8" />

<title>Math: Task 3</title>


    p {

        color: purple;

        margin: 0.5em 0;



    * {

        box-sizing: border-box;



<!--<link rel="stylesheet" href="../styles.css" />-->
<section class="preview">


Hi @palletmahn and welcome to the community :wave:

Your three posts don’t include any JavaScript. Your <script> tags were probably stripped from your post by the forum software.
Please put your complete code into (or similar online editor) and make one new post with all three links to your CodePen solutions.

This process is also described at the bottom of every task page:

Assessment or further help

You can practice these examples in the Interactive Editors above.

If you would like your work assessed, or are stuck and want to ask for help:

  1. Put your work into an online shareable editor such as CodePen, jsFiddle, or Glitch. You can write the code yourself, or use the starting point files linked to in the above sections.
  2. Write a post asking for assessment and/or help at the MDN Discourse forum Learning category. Your post should include:
  • A descriptive title such as “Assessment wanted for Math 1 skill test”.
  • Details of what you have already tried, and what you would like us to do, e.g. if you are stuck and need help, or want an assessment.
  • A link to the example you want assessed or need help with, in an online shareable editor (as mentioned in step 1 above). This is a good practice to get into — it’s very hard to help someone with a coding problem if you can’t see their code.
  • A link to the actual task or assessment page, so we can find the question you want help with.

Thank you and have a nice day :slightly_smiling_face:

1 Like

Here is the link

Math 3

1 Like

Congratulations! The first and second task are correct. :tada:

In the third comparison you need to remove the quotes. Your current code assigns the literal string “pwd1 == pwd2” to pwdMatch. You should also use strict comparison (===) which not only compares the values, but also the type. It’s recommended to always use === when comparing things in JavaScript.

On a general note: When defining variables you should always use either const or let like const weightComparison = ... ;.

Have a nice day,

Thank you very much for taking the time to have a look at the exercises I submitted and making corrections with explanations where I went wrong.

1 Like